Handling secrets in ECS tasks
data "template_file" "blog" { | |
template = "${file("template.json")}" | |
vars { | |
app_name = "blog" | |
environment = "staging" | |
region = "us-east-1" | |
account = "12341234" | |
} | |
} | |
resource "aws_ecs_task_definition" "blog" { | |
container_definitions = "${data.template_file.blog.rendered}" | |
family = "blog" | |
task_role_arn = "${var.iam_role_arn}" | |
execution_role_arn = "${var.iam_role_arn}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment