Replies: 3 comments
-
Looking for a solution too. Did you find any? |
Beta Was this translation helpful? Give feedback.
-
I don't think there's a "proper" way to do it, unfortunately. |
Beta Was this translation helpful? Give feedback.
-
There is no CDK solution from what I can tell currently. There is an open issue for CDK to integrate with cloudformation's rollback feature, but this solution also leaves some to be desired. For the moment, I've opted for just running One of the downsides of CFN's rollback feature is that the stack is effectively undeployable during the monitoring period. If you need more flexibility than that, cobbling together actions using Step Functions is probably the solution that will allow you to do exactly what you need. |
Beta Was this translation helpful? Give feedback.
-
There aren't a lot of examples out there regarding the "right" way to deploy/test/rollback changes using [cdk-pipelines]
(https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html).
cdk-pipelines don't seem to use CodeDeploy, but I haven't found any documentation as to why not. Instead, from what I understand, they apply cloudformation changesets directly and call that the "deploy" stage:
What happens when my Postman tests fail? The pipeline is stopped, but does it rollback my changes? Or do I have to do it manually? What if I want to use blue-green or canary deployments?
Here is the code that produced the above image:
Beta Was this translation helpful? Give feedback.
All reactions