Difference between revisions of "Aws sts assume-role"

From wikieduonline
Jump to navigation Jump to search
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html
+
<code>[[aws sts]] assume-role</code> ([https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html doc], [https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html API ref]) Returns a set of [[temporary security credentials]] that you can use to access Amazon Web Services resources.
[[aws sts]] assume-role [[--role-arn]] your_role
+
 
+
 
[[aws sts]] assume-role [[--role-arn]] your_role [[--role-session-name]] XXXX
+
* <code>[[aws sts]] assume-role [[--role-arn]] your_role</code>
 +
* <code>[[aws sts]] assume-role [[--role-arn]] your_role [[--role-session-name]] XXXX</code>
 +
* <code>[[aws sts]] assume-role [[--role-arn]] your_role [[--role-session-name]] XXXX [[--serial-number]] yyyyy [[--token-code]] [[your-token]]</code>
 +
* <code>[[aws sts get-session-token --profile]]</code>
  
 
  --role-arn <value>
 
  --role-arn <value>
 
  --role-session-name <value>
 
  --role-session-name <value>
  [[--duration-seconds]] <value> The maximum session duration setting can have a value from 1 hour to 12 hours
+
  [[--duration-seconds]] <value> The maximum [[session]] duration setting can have a value from 1 hour to 12 hours
 +
[[--source-identity]]
  
 
== Related ==
 
== Related ==
Line 14: Line 18:
 
* <code>[[aws sts assume-role-with-saml]]</code>
 
* <code>[[aws sts assume-role-with-saml]]</code>
 
* <code>[[sts:AssumeRole]]</code>
 
* <code>[[sts:AssumeRole]]</code>
 +
* [[Maximum session duration]]
 +
* <code>[[assumed-role/]]</code>
 +
* <code>[[aws sts get-caller-identity]]</code>
 +
* <code>[[aws iam get-role]]</code>
 +
 +
== Activities ==
 +
* [[Enhance programmatic access for IAM users using a YubiKey for multi-factor authentication]]
 +
* [[Creating a role to delegate permissions to an IAM user]]
  
 
== See also ==
 
== See also ==
 +
* {{aws sts assume-role}}
 
* {{aws sts}}
 
* {{aws sts}}
 +
* {{AWS roles}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 15:18, 3 January 2024

Advertising: