Now, you must set a profile manually and use this profile for AWS SDK/CLI.
Once you discontinue using the AWS-managed credentials, and re-run the above command ( cat ~/.aws/credentials), you will notice that the file is empty. Here is some info on how these temporary credentials are managed and how you can turn them off. Note: this is managed by AWS and cannot be modified/deleted.Ī get-around is turning off the AWS-managed temporary credentials. If you run cat ~/.aws/credentials you will see a profile already created for you, and this also lists the session token. For anyone who is getting this error when using AWS SDK on the Cloud9 editor, the problem could be due to the AWS-managed temporary credentials which might restrict what the identity (the AWS-managed temporary credentials which AWS sets for you) can do.