AptlyStar

AWS STS

Connect to AWS Security Token Service

Nutzungsanweisungen

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

Tools

sts_assume_role

Assume an IAM role and receive temporary security credentials

Eingabe

ParameterTypErforderlichBeschreibung
regionstringJaAWS region (e.g., us-east-1)
accessKeyIdstringJaAWS access key ID
secretAccessKeystringJaAWS secret access key
roleArnstringJaARN of the IAM role to assume
roleSessionNamestringJaIdentifier for the assumed role session
durationSecondsnumberNeinDuration of the session in seconds (900-43200, default 3600)
policystringNeinJSON IAM policy to further restrict session permissions (max 2048 chars)
externalIdstringNeinExternal ID for cross-account access
serialNumberstringNeinMFA device serial number or ARN
tokenCodestringNeinMFA token code (6 digits)

Ausgabe

ParameterTypBeschreibung
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

Eingabe

ParameterTypErforderlichBeschreibung
regionstringJaAWS region (e.g., us-east-1)
accessKeyIdstringJaAWS access key ID
secretAccessKeystringJaAWS secret access key

Ausgabe

ParameterTypBeschreibung
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

Eingabe

ParameterTypErforderlichBeschreibung
regionstringJaAWS region (e.g., us-east-1)
accessKeyIdstringJaAWS access key ID
secretAccessKeystringJaAWS secret access key
durationSecondsnumberNeinDuration of the session in seconds (900-129600, default 43200)
serialNumberstringNeinMFA device serial number or ARN
tokenCodestringNeinMFA token code (6 digits)

Ausgabe

ParameterTypBeschreibung
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

Eingabe

ParameterTypErforderlichBeschreibung
regionstringJaAWS region (e.g., us-east-1)
accessKeyIdstringJaAWS access key ID
secretAccessKeystringJaAWS secret access key
targetAccessKeyIdstringJaThe access key ID to look up

Ausgabe

ParameterTypBeschreibung
accountstringAWS account ID that owns the access key

On this page