User Tools

Site Tools


aws:iam

Differences

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

Link to this comparison view

Next revision
Previous revision
aws:iam [22/07/2024 09:51] – created - external edit 127.0.0.1aws: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 56: Line 56:
  
  
 +===== Export Key and secret =====
  
 +<code>
 +export AWS_ACCESS_KEY_ID=AKIAMYKEY
 +export AWS_SECRET_ACCESS_KEY=askjqowiureoiqweMYSecretKey
 +export AWS_REGION=eu-west-2
 +</code>
 +
 +===== AWS SSO =====
 +
 +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.1721641882.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki