Difference between revisions of "Aws sts"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
https://docs.aws.amazon.com/cli/latest/reference/sts/
+
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/index.html
  
 +
== Commands ==
 
* <code>aws sts</code>
 
* <code>aws sts</code>
 
* <code>[[aws sts assume-role]]</code>
 
* <code>[[aws sts assume-role]]</code>
Line 18: Line 19:
 
   # $4 = SESSION_NAME
 
   # $4 = SESSION_NAME
  
  [[aws sts get-session-token]] [[--profile]] [[your_profile]] [[--serial-number]] [[your-serial-number]] --token-code your_mfa_code
+
  [[aws sts get-session-token]] [[--profile]] [[your_profile]] [[--serial-number]] [[your-serial-number]] [[--token-code]] your_mfa_code
 
  [[aws sts assume-role]] [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] [[your-serial-number]] [[--token-code]]
 
  [[aws sts assume-role]] [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] [[your-serial-number]] [[--token-code]]
  
Line 26: Line 27:
 
* <code>[[sts:AssumeRole]]</code>
 
* <code>[[sts:AssumeRole]]</code>
 
* [[AWS Security Token Service (STS)]]
 
* [[AWS Security Token Service (STS)]]
 +
* <code>[[aws iam create-access-key]]</code>
 +
* [[AWS Authentication]]
  
 
== See also ==
 
== See also ==

Latest revision as of 06:14, 6 June 2024

Advertising: