Skip to content

AWS::CodeDeploy::BlueGreen !Ref in AWS::ECS::TaskDefinition-ContainerDefinition-Image does not trigger CodeDeploy deploymentΒ #823

Open
@Kruspe

Description

@Kruspe

1. Title

AWS::ECS::TaskDefinition-ContainerDefinition-Image

2. Scope of request

Current issue we are experiencing: When updating the Image property of the TaskDefinition (for example choosing different tag) using AWS::CodeDeploy::BlueGreen and the Image property contains the intrinsic Ref function, no CodeDeploy deployment is triggered.
When replacing the intrinsic Ref function with the expected hard coded value the CodeDeploy deployment is triggered as expected when the Image property is updated.

3. Expected behavior

Intrinsic Ref functions inside the Image property should work together with AWS::CodeDeploy::BlueGreen

4. Suggest specific test cases

Common use case: Using Ref for account and region specific details

"Image": {
  "Fn::Join": [
    "",
    [
      {
        "Ref": "AWS::AccountId"
      },
      ".dkr.ecr.",
      {
        "Ref": "AWS::Region"
      },
      ".",
      {
        "Ref": "AWS::URLSuffix"
      },
      "/<ECR-Repo>:<TAG>"
    ]
  ]
}

5. Helpful Links to speed up research and evaluation

ECS Blue/Green docs

6. Category

Use the categories as displayed in the AWS Management Console (simplified):

  1. Compute (ECS)
  2. Developer Tools (CodeDeploy)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions