Open Mic-U opened 1 year ago
Hey @Mic-U ! I could reproduce the issue. let me try to dig into your codebase and see what exactly is happening in this case and what are the actions we can take on our end to fix this.
In the mean time as a workaround can you create an user profile that allows DescribeChangeSet
action.
I dug in to this; thanks for the great repro steps @Mic-U! I was able to reproduce the error, and filed a bug report in aws-sdk-go
here: https://github.com/aws/aws-sdk-go/issues/4983.
Symptom
copilot env init
command stucks in the following state.Repro Steps
AdministratorAccess
policy and following inline policy to the IAM user.aws configure
command.copilot env init
command and choose the profile for the IAM user.Additional Information
When this issue occurs,
DescribeChangeSet
API returnsAccessDenied
error. We can confirm it with CloudTrail.Suggestion
It seems that copilot retries
DescribeChangeSet
API even though it returnsAccessDenied
error. copilot should stop the process and show the error message.