Last active
October 2, 2023 08:28
-
-
Save ignorabilis/51d6ab0baa86723a7ddd3dcbaa6ebcd5 to your computer and use it in GitHub Desktop.
Env vars in Terraform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container_definitions = [ | |
{ | |
name = "my-container" | |
image = "my-image" | |
//---------- no longer needed ---------- | |
environment = [ | |
{ | |
"name" : "SOMETHING_SOMETHING", | |
"value" : var.something_something | |
}, | |
{ | |
"name" : "ANOTHER_SOMETHING", | |
"value" : var.another_something | |
}, | |
// a gazillion more | |
], | |
secrets = [ | |
{ | |
"name" : "SECRET_SECRET", | |
"valueFrom" : data.terraform_remote_state.database.outputs.secret_secret | |
}, | |
{ | |
"name" : "VERY_SECRET", | |
"valueFrom" : data.terraform_remote_state.database.outputs.very_secret | |
}, | |
// a gazillion more | |
] | |
//---------- no longer needed ---------- | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment