PARALLAX

sts_session_token

obtain a session token from the AWS Security Token Service

Collection: community.aws

Full Name: community.aws.sts_session_token

Synopsis

obtain a session token from the AWS Security Token Service

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
debug_botocore_endpoint_logsboolfalse
duration_secondsint
endpoint_urlstr
mfa_serial_numberstr
mfa_tokenstr
profilestr
regionstr
secret_keystr
session_tokenstr
validate_certsbooltrue

Example

yaml
# (more details: https://docs.aws.amazon.com/STS/latest/APIReference/API_GetSessionToken.html)
- name: Get a session token
  community.aws.sts_session_token:
    access_key: AKIA1EXAMPLE1EXAMPLE
    secret_key: 123456789abcdefghijklmnopqrstuvwxyzABCDE
    duration_seconds: 3600
  register: session_credentials
Search
    ↑ ↓ move↵ openesc close