Created
May 30, 2018 03:05
-
-
Save endofcake/235e1e987d95e69d3245c88eafa4c594 to your computer and use it in GitHub Desktop.
External data source for Terraform that provides tags for all images in an ECS task definition
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
# Use current image versions to avoid surreptitious app deployments | |
data "external" "active_image_versions" { | |
program = ["python", "/scripts/get_image_tags.py"] | |
query = { | |
cluster_name = "${data.terraform_remote_state.ecs.ecs_cluster_id}" | |
service_name = "${var.app_name}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment