Skip to content

Instantly share code, notes, and snippets.

@endofcake
Last active June 8, 2018 00:25
Show Gist options
  • Save endofcake/e39967064a83789ea9769c35eb02f30f to your computer and use it in GitHub Desktop.
Save endofcake/e39967064a83789ea9769c35eb02f30f to your computer and use it in GitHub Desktop.
Use current image tag as input parameter to the ECS task
task_variables {
app = "${var.app_name}"
image = "${module.ecr.repository_url}:${lookup(data.external.active_image_versions.result, var.app_name, "latest")}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment