Releases: hunt3ri/terragen
Releases · hunt3ri/terragen
v0.4.0
Add support for heredoc config, to allow json documents to be passed for iam config, eg
role_json: >
<<EOT
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
EOT
v0.3.1
v0.3.0
Added support for creating HCL maps and reading secrets from environment variables. Taken from docs:
Environment Variables and Secrets
It is good security practice to not store secrets in your config. Terragen supports reading values from environment variables. You can set a secret as an environment variable using the env.
notation, eg:
my_secret: "env.MY_SECRET"
HCL Maps
Terragen will translate sub-objects in the main config
object into a HCL Map. For example:
config:
tags:
name: "testMap"
environment: "Test"
Will generate a map as follows:
tags = {
name = "testMap"
environment = "Test"
}