This is the repository for the Terraform XML File Provider. This provider will allow you to create XML files from your Terraform templates. This is intended to help deployment of software that depend on XML configuration files.
For general information about Terraform, visit the official website and the GitHub project page.
The current version of this provider requires Terraform v0.12 or higher to run.
You need to run terraform init
to fetch the provider before deploying
The basic purpose of this provider is to create XML files from Terraform templates. Elements can be created or added to existing XML files by simply specifying elements and values in a key=value format.
resource "xml_file" "example" {
filename = "/tmp/test.xml"
elements = {
"root.second-level.third-level.@attribute" = "value"
"root.second-level.@attribute" = "value"
"root.doosra-level.third-level.@name" = "some-value"
}
}
Requires Go to be installed on the system.
$ go get github.com/ssomagani/terraform-provider-xml
$ cd $GOPATH/src/github.com/ssomagani/terraform-provider-xml
$ go build
See Terraform documentation for installing 3rd party plugins.
- Text elements NOT supported yet
- Wildcards NOT supported yet
- Deletion of elements on update NOT supported yet