stackit icon indicating copy to clipboard operation
stackit copied to clipboard

stackit hangs when run after import changeset

Open tekumara opened this issue 4 years ago • 2 comments

stackit just hangs without any indication of what's happening:

$ stackit up --stack-name s3-buckets --template infra/cloudformation/s3-buckets.yaml --region us-east-1
stackit version 0.0.39

tekumara avatar Jan 20 '21 06:01 tekumara

This was on a stack that I had created by importing resources. I updated the stack using another tool (parfait). The stack is now in a state that stackit is happy with, and stackit is no longer hanging.

tekumara avatar Jan 21 '21 03:01 tekumara

Can reproduce this reliably by creating and executing an import change set, eg:

	aws cloudformation create-change-set                                                \
		--stack-name $(stackname) --change-set-name $(LogicalResourceId)ImportChangeSet	\
		--change-set-type IMPORT                                                        \
		--resources-to-import "[{\"ResourceType\":\"AWS::S3::Bucket\",\"LogicalResourceId\":\"$(LogicalResourceId)\",\"ResourceIdentifier\":{\"BucketName\":\"$(BucketName)\"}}]"    \
		--template-body file://infra/cloudformation/s3-buckets.yaml
	aws cloudformation describe-change-set --change-set-name $(LogicalResourceId)ImportChangeSet --stack-name $(stackname)
	aws cloudformation execute-change-set --change-set-name $(LogicalResourceId)ImportChangeSet --stack-name $(stackname)

And then try and run stackit as above.

tekumara avatar Jan 27 '21 07:01 tekumara