Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rb:aws-cli [07/02/2019 09:27]
andrew [Using roles and profiles with Boto3]
rb:aws-cli [25/04/2019 10:01] (current)
andrew [Setting up roles]
Line 116: Line 116:
  
  
 +==== Errors ====
 +
 +<​code>​
 +$ aws ec2 describe-instances --profile nonprod_admin
 +
 +An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid.
 +$
 +</​code>​
 +
 +This was solved by updating the ''​aws_access_key_id''​ and ''​aws_secret_access_key''​ in ~/​.aws/​credentials.
 +As it said "The security token included in the request is invalid."​ Obvious in hindsight.
 ===== Using roles and profiles with Boto3 ===== ===== Using roles and profiles with Boto3 =====
  

rb/aws-cli.txt ยท Last modified: 25/04/2019 10:01 by andrew