Relative Content

Tag Archive for terraformamazon-ecsterraform-provider-aws

How do i create a new revision of a task definition instead of creating a new task definition itself using Terraform

I have an AWS cluster which is running multiple tasks, each of these being a revision of the previous one as these revisions are identical except for a path change the docker command passed to them. I wanted to automate this process using Terraform. I want to create a new revision of an existing task, and run a new task in an existing cluster which picks this latest task revision. But right now I am only able to create a new task definition and a new ECS cluster everytime I am running the script. I am not sure what I am missing.