On Execution of command below from AWS Cloud9

copilot app delete 

Getting message as :

 execute svc delete: delete service: delete stack demoappone-test-lbdemoappone: InvalidClientTokenId: The security token included in the request is invalid
        status code: 403, request id: 5001e2d0-3bbc-4821-911c-27713af4f2f9

AWS Cloud9 points to document https://docs.aws.amazon.com/cloud9/latest/user-guide/welcome.html .

Do we know how to solve above 403 error?

1

There are 1 best solutions below

0
On

This appears to be because Cloud9 has a limited set of allowed actions that're supported for AWS managed temporary credentials. (For the troubleshooting guide: link)

The way that the ECS workshop gets around it is by creating and storing access credentials in the environment: sample solution. (For the Cloud9 guide: link)