aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.11k stars 54 forks source link

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

Open huynhphat22 opened 4 years ago

huynhphat22 commented 4 years ago

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

6. Category

Management (CloudTrail, Config...)

7. Additional context

Error image: image

mrpackethead commented 3 years ago

There appears to be multiple errors in this template. THeres large chucks missing.

john-kontralto commented 3 years ago

Does anyone have a working example? Or a link to someplace with at least a complete template?

danilosilvase commented 2 years ago

Does anyone have a working example? Or a link to someplace with at least a complete template?

Have a look here for the example: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/blue-green.html#blue-green-template-example