copilot-cli: Missing EnvManagerRole role - can't execute any commands

I am currently testing copilot and am running into an issue. I was trying to delete an environment and it failed halfway through. Now any time I do anything with cli, I get an error like this:

describe environment staging: list deployed services in env staging: get resources by Copilot tags: 
get resource: AccessDenied: User: arn:aws:iam::xxx:user/user is not authorized to perform: sts:AssumeRole on 
resource: arn:aws:iam::xxx:role/project-staging-EnvManagerRole
	status code: 403

I checked and no EnvManagerRole role exists. I assume it was deleted at some point by copilot. The issue is I can’t do any commands now - init, env show, nothing.

How would I go about fixing this issue?

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

I think it’s working now. Thanks again for all of your help! I’ve learned a lot from this.