realestate-com-au / stackup

a simple CLI and Ruby API for AWS CloudFormation
MIT License
97 stars 34 forks source link

Spurious "update failed" message when applying an IMPORT change set #96

Open amcinnes opened 2 years ago

amcinnes commented 2 years ago

I created a change set with type IMPORT, using the AWS CLI. When applying this change set with stackup, the final state of the stack is IMPORT_COMPLETE. This is a success, but stackup prints a spurious update failed error because the state doesn't match this regex.

Example command and output:

$ stackup angus-tgw-demo change-set apply --name import
INFO: [03:14:26] angus-tgw-demo - IMPORT_IN_PROGRESS - User Initiated
INFO: [03:14:29] TransitGatewayVpcAttachment - IMPORT_IN_PROGRESS - Resource import started.
INFO: [03:14:30] TransitGatewayVpcAttachment - IMPORT_IN_PROGRESS
INFO: [03:14:30] TransitGatewayVpcAttachment - IMPORT_COMPLETE - Resource import completed.
INFO: [03:14:32] TransitGatewayVpcAttachment - UPDATE_IN_PROGRESS - Apply stack-level tags to imported resource if applicable.
INFO: [03:14:49] TransitGatewayVpcAttachment - UPDATE_COMPLETE
INFO: [03:14:51] angus-tgw-demo - IMPORT_COMPLETE
ERROR: update failed