Updsts Update Sts Credential
updsts_update_sts_credentialObtain temporary AWS STS credentials using a TOTP token and update the specified profile in the AWS credentials file with the new session keys.
Instructions
Get and update AWS credentials for the specified profile using TOTP token.
This tool obtains temporary STS credentials using MFA authentication and updates the AWS credentials file with the new session token and keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Duration seconds of the sts token (default: 3600). | |
| cred_file | No | Credential file path. If empty string, the default credential file will be used. | |
| totp_token | Yes | TOTP token of ARN device. | |
| profile_name | Yes | Profile name to get sts secret key. | |
| sts_profile_name | No | STS Profile name in the AWS credentials file. If empty string, '<profile_name>_sts' will be used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |