aws-profile update

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

stacktape aws-profile update

The command is fully interactive. It reads the profiles already configured in your AWS credentials file (~/.aws/credentials) and walks you through three prompts:

  1. Choose a profile — a selectable list of every profile in your credentials file.
  2. AWS_ACCESS_KEY_ID — the new access key ID from your IAM user's security credentials.
  3. 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:

stacktape aws-profile update --debug

Flags reference

stacktape aws-profile updateCLI options
-h, --helpstring

Show 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.
--quietboolean

Quiet

Hide progress, banners, success messages and hints. Command output, warnings and errors are still printed.