Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasbleijendaal/terraform-xml-merger


https://github.com/thomasbleijendaal/terraform-xml-merger

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Apim Terraform

Additions to make cicd for API Management better.

## TODO

- [ ] named values support (separate provider that first checks if the named value exists) -> postfixed named values probably not the best
- [ ] named values + depends on important for policy deployment -> dynamic postfixed named values will resolve catch-22, so solution has merit
- [x] white space in policy xml causes changes, which should be avoided
- [ ] named value deletion is very catch-22

## Xml Merger Terraform Provider

Merges xml policies into bigger files, so xml policies can be composed of fragments,
without relying on policy fragments.

### Environment variables

- `TF_XML_POLICIES_FOLDER`: Folder to scan for xml fragments.
- `TF_XML_BASE_POLICY`: Path to base xml file to merge fragments into.

### Variable format

`%{A-Z_}:{a-z}`: Name of variable (`EXAMPLE_VARIABLE`) followed by type (`bool|int|string`): (`%EXAMPLE_VARIABLE:bool%`).

Variables will be parsed and added to terraform schema.

### XDT details

Read [this](https://learn.microsoft.com/en-us/previous-versions/aspnet/dd465326(v=vs.110)).

## OpenApi Merger

Merges multiple OpenApi json files into single files, so API Management api version sets
can be composed of multiple backends.