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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| duration_seconds | int | |||
| endpoint_url | str | |||
| mfa_serial_number | str | |||
| mfa_token | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| validate_certs | bool | true |
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