Difference between revisions of "Aws sts get-session-token"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
* <code>[[aws sts]] get-session-token --serial-number <mfa_device> --token-code <token></code>
 
* <code>[[aws sts]] get-session-token --serial-number <mfa_device> --token-code <token></code>
 
* <code>[[aws sts]] get-session-token --serial-number [[arn]]:aws:iam::62405745487395:mfa/yourname --token-code 123456</code>
 
* <code>[[aws sts]] get-session-token --serial-number [[arn]]:aws:iam::62405745487395:mfa/yourname --token-code 123456</code>
 +
 +
== Example ==
 +
aws sts get-session-token \
 +
    --duration-seconds 900 \
 +
    --serial-number "YourMFADeviceSerialNumber" \
 +
    --token-code 123456
  
 
== Related terms ==
 
== Related terms ==

Revision as of 13:48, 26 October 2021

Advertising: