AptlyStar

AWS STS

Connect to AWS Security Token Service

使用方法

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

ツール

sts_assume_role

Assume an IAM role and receive temporary security credentials

入力

パラメータ型必須説明
regionstringはいAWS region (e.g., us-east-1)
accessKeyIdstringはいAWS access key ID
secretAccessKeystringはいAWS secret access key
roleArnstringはいARN of the IAM role to assume
roleSessionNamestringはいIdentifier for the assumed role session
durationSecondsnumberいいえDuration of the session in seconds (900-43200, default 3600)
policystringいいえJSON IAM policy to further restrict session permissions (max 2048 chars)
externalIdstringいいえExternal ID for cross-account access
serialNumberstringいいえMFA device serial number or ARN
tokenCodestringいいえMFA token code (6 digits)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
regionstringはいAWS region (e.g., us-east-1)
accessKeyIdstringはいAWS access key ID
secretAccessKeystringはいAWS secret access key

出力

パラメータ型説明
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

入力

パラメータ型必須説明
regionstringはいAWS region (e.g., us-east-1)
accessKeyIdstringはいAWS access key ID
secretAccessKeystringはいAWS secret access key
durationSecondsnumberいいえDuration of the session in seconds (900-129600, default 43200)
serialNumberstringいいえMFA device serial number or ARN
tokenCodestringいいえMFA token code (6 digits)

出力

パラメータ型説明
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

入力

パラメータ型必須説明
regionstringはいAWS region (e.g., us-east-1)
accessKeyIdstringはいAWS access key ID
secretAccessKeystringはいAWS secret access key
targetAccessKeyIdstringはいThe access key ID to look up

出力

パラメータ型説明
accountstringAWS account ID that owns the access key

On this page