The aws-profile update command replaces the AWS access key credentials for an existing AWS profile stored on your machine. Use it when you rotate IAM user keys or need to correct a misconfigured profile without deleting and recreating it.
Usage
The command is fully interactive. It reads the profiles already configured in your AWS credentials file (~/.aws/credentials) and walks you through three prompts:
- Choose a profile — a selectable list of every profile in your credentials file.
- AWS_ACCESS_KEY_ID — the new access key ID from your IAM user's security credentials.
- AWS_SECRET_ACCESS_KEY — the corresponding secret key (input is masked).
After the prompts complete, Stacktape updates the selected profile's credentials and prints Updated credentials for AWS profile <profile>.
If no AWS profiles exist on your system, the command exits with an error. Use aws-profile create to set up your first profile.
Examples
Update credentials for an existing profile with debug-level logging:
Flags reference
stacktape aws-profile updateCLI options-h, --helpstringShow Help
If provided, the command will not execute and will instead print help information.
--log-level"info" | "debug" | "error"Log Level
The level of logs to print to the console.
info: Basic information about the operation.error: Only errors.debug: Detailed information for debugging.
--quietbooleanQuiet
Hide progress, banners, success messages and hints. Command output, warnings and errors are still printed.
Related commands
aws-profile create— create a new AWS profile from scratch.aws-profile delete— remove a profile you no longer need.aws-profile list— list all profiles configured on your system.