HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws sts — Security Token Service (STS) allows to request temporary credentials for (IAM) users or federated us

Submitted by: @import:tldr-pages··
0
Viewed 0 times
aws stscommandsecurityclitokenserviceallowssts

Problem

How to use the aws sts command: Security Token Service (STS) allows to request temporary credentials for (IAM) users or federated users. More information: <https://docs.aws.amazon.com/cli/latest/reference/sts/>.

Solution

aws sts — Security Token Service (STS) allows to request temporary credentials for (IAM) users or federated users. More information: <https://docs.aws.amazon.com/cli/latest/reference/sts/>.

Get temporary security credentials to access specific AWS resources:
aws sts assume-role --role-arn {{aws_role_arn}}


Get an IAM user or role whose credentials are used to call the operation:
aws sts get-caller-identity

Code Snippets

Get temporary security credentials to access specific AWS resources

aws sts assume-role --role-arn {{aws_role_arn}}

Get an IAM user or role whose credentials are used to call the operation

aws sts get-caller-identity

Context

tldr-pages: common/aws sts

Revisions (0)

No revisions yet.