Hi there,
I probably did something silly but I can't find what....
context:
copilot svc deploytest environment and it is failing at build time for a permission issue when it is doing an environment upgrade. Looks like I don't have permission to "get template version of environment prod"...This is an extract of the log for the failing build:
[Container] 2021/01/19 20:05:43 Running command ./copilot-linux env upgrade --all
Environment test is already on the latest version v1.1.0, skip upgrade.
✘ get template version of environment prod in app my-application: get template summary for stack my-application-prod: AccessDenied: User: arn:aws:sts::888888888888:assumed-role/pipeline-rnwl-backend-services-Rn-BuildProjectRole-19KBLABLAZRPS/AWSCodeBuild-7427a95d-5555-4949-80f5-01d380b4e38c is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::888888888888:role/rnwl-backend-services-prod-EnvManagerRole
status code: 403, request id: f32e8a8c-5555-41c3-bd1b-cf9927859931
[Container] 2021/01/19 20:05:44 Command did not exit successfully ./copilot-linux env upgrade --all exit status 1
[Container] 2021/01/19 20:05:44 Phase complete: POST_BUILD State: FAILED
[Container] 2021/01/19 20:05:44 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: ./copilot-linux env upgrade --all. Reason: exit status 1
Any idea what is happening and how I could fix that?
Thanks a lot!
Looks like issue #1805 is the problem. Also looks like it is fixed by the new version 1.1.0.
I'll update my installation of Copilot!
Yep! #1805 was the issue.
I updated to the latest version and the pipeline if working fine.
Closing the issue :)
Most helpful comment
Looks like issue #1805 is the problem. Also looks like it is fixed by the new version 1.1.0.
I'll update my installation of Copilot!