AptlyStar

AWS STS

Connect to AWS Security Token Service

Instrucciones de uso

Integrate AWS STS into the workflow. Assume roles, get temporary credentials, verify caller identity, and look up access key information.

Herramientas

sts_assume_role

Assume an IAM role and receive temporary security credentials

Entrada

ParámetroTipoObligatorioDescripción
regionstringSíAWS region (e.g., us-east-1)
accessKeyIdstringSíAWS access key ID
secretAccessKeystringSíAWS secret access key
roleArnstringSíARN of the IAM role to assume
roleSessionNamestringSíIdentifier for the assumed role session
durationSecondsnumberNoDuration of the session in seconds (900-43200, default 3600)
policystringNoJSON IAM policy to further restrict session permissions (max 2048 chars)
externalIdstringNoExternal ID for cross-account access
serialNumberstringNoMFA device serial number or ARN
tokenCodestringNoMFA token code (6 digits)

Salida

ParámetroTipoDescripción
accessKeyIdstringTemporary access key ID
secretAccessKeystringTemporary secret access key
sessionTokenstringTemporary session token
expirationstringCredential expiration timestamp
assumedRoleArnstringARN of the assumed role
assumedRoleIdstringAssumed role ID with session name
packedPolicySizenumberPercentage of allowed policy size used
sourceIdentitystringSource identity set on the role session, if any

sts_get_caller_identity

Get details about the IAM user or role whose credentials are used to call the API

Entrada

ParámetroTipoObligatorioDescripción
regionstringSíAWS region (e.g., us-east-1)
accessKeyIdstringSíAWS access key ID
secretAccessKeystringSíAWS secret access key

Salida

ParámetroTipoDescripción
accountstringAWS account ID
arnstringARN of the calling entity
userIdstringUnique identifier of the calling entity

sts_get_session_token

Get temporary security credentials for an IAM user, optionally with MFA

Entrada

ParámetroTipoObligatorioDescripción
regionstringSíAWS region (e.g., us-east-1)
accessKeyIdstringSíAWS access key ID
secretAccessKeystringSíAWS secret access key
durationSecondsnumberNoDuration of the session in seconds (900-129600, default 43200)
serialNumberstringNoMFA device serial number or ARN
tokenCodestringNoMFA token code (6 digits)

Salida

ParámetroTipoDescripción
accessKeyIdstringTemporary access key ID
secretAccessKeystringTemporary secret access key
sessionTokenstringTemporary session token
expirationstringCredential expiration timestamp

sts_get_access_key_info

Get the AWS account ID associated with an access key

Entrada

ParámetroTipoObligatorioDescripción
regionstringSíAWS region (e.g., us-east-1)
accessKeyIdstringSíAWS access key ID
secretAccessKeystringSíAWS secret access key
targetAccessKeyIdstringSíThe access key ID to look up

Salida

ParámetroTipoDescripción
accountstringAWS account ID that owns the access key

On this page