aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

AWS::CodeDeploy::BlueGreen hook error in example for ECS

Open
#605 3 comments 6 reactions 0 assignees View on GitHub
Coverage hooks
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/37

## 1. AWS::CodeDeploy::BlueGreen fail to update existing CloudFormation stack for ECS

## 2. Scope of request

AWS::CodeDeploy::BlueGreen fail to update CloudFormation stack after executing a changeset that updates image(or any attribute in the container definition) for the container with a message: "**_'CodeDeployBlueGreenHook' of type AWS::CodeDeploy::BlueGreen failed with message: The TaskDefinition logical Id [BlueTaskDefinition] is the same between initial and final template, CodeDeploy can't perform BlueGreen style update properly_**"

## 3. Expected behavior

The hook should be triggered correctly after executing a changeset changing the image to a different one in an existing CloudFormation stack

## 4. Suggest specific test cases

Apply new change for the container image should trigger the hook; The hook should run accordingly.

## 5. Helpful Links to speed up research and evaluation

Example link: [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html#blue-green-template-example](url)

## 6. Category

Management (CloudTrail, Config...)

## 7. Additional context

Error image:
![image](https://user-images.githubusercontent.com/19517514/90096138-b9134900-dd5c-11ea-84f9-48d9b6fc3cd4.png)

Contributor guide

Open the contributing guide

Research direction

Review the linked roadmap issue and the AWS CloudFormation blue-green template example first; the issue names no repository files or tests. Reproduce an ECS stack update that changes the container image, and consider the issue resolved when the CodeDeployBlueGreenHook runs successfully instead of reporting identical TaskDefinition logical IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.