User Tools

Site Tools


aws:iam

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
aws:iam [08/01/2025 11:19] andrewaws:iam [01/09/2025 16:21] (current) – [Assume role] andrew
Line 25: Line 25:
  
 <code> <code>
-$ aws iam list-roles --profile nonprod_admin | jq .[][].RoleName | grep -i 'dev\|test\|nonprod'+$ aws iam list-roles --profile dev_admin | jq .[][].RoleName | grep -i 'dev\|test\|nonprod'
 "AJS-stepFunctionTest" "AJS-stepFunctionTest"
 "AndrewLambdaTest" "AndrewLambdaTest"
Line 53: Line 53:
       aws sts get-caller-identity  # Should show info from assumed role in ${ACCOUNT}       aws sts get-caller-identity  # Should show info from assumed role in ${ACCOUNT}
 done done
 +</code>
 +
 +
 +===== Export Key and secret =====
 +
 +<code>
 +export AWS_ACCESS_KEY_ID=AKIAMYKEY
 +export AWS_SECRET_ACCESS_KEY=askjqowiureoiqweMYSecretKey
 +export AWS_REGION=eu-west-2
 </code> </code>
  
 ===== AWS SSO ===== ===== AWS SSO =====
  
-use ''aws configure sso --use-device-code'' +For times when you need to authenticate on a remote system without a browser. If you get a redirect to 127.0.0.1 failure error messge, this is for you:- 
- + 
 +<code> 
 +aws configure sso --use-device-code 
 +</code>
  
aws/iam.1736335163.txt.gz · Last modified: by andrew

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki