data "aws_ecs_container_definition" "ecs-${name}" {
         task_definition = "${aws_ecs_task_definition.${name}.id}"
         container_name = "${name}"
      }
      Terraform language logo

      aws_ecs_container_definition

      Terraform snippets

      The following code defines an ECS container named ecs-foobar. The task_definition and container_name are both set to the value foobar.

      Shortcut: tf_aws_ecs_container_definition

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.