The aws-profile create command creates a new AWS profile on your local machine. It prompts you for a profile name, AWS Access Key ID, and AWS Secret Access Key, then stores them in the default AWS credentials location in your home directory. Other AWS tools — including the AWS CLI — can use these profiles.
Usage
The command is fully interactive. It walks you through three prompts:
- Profile name — an arbitrary name for the profile. Leave blank to use
default. A profile nameddefaultis used automatically when no--profileflag is passed to other Stacktape commands. - AWS Access Key ID — the access key from your IAM user's security credentials.
- AWS Secret Access Key — the corresponding secret key (input is masked).
If a profile with the chosen name already exists in your credentials or config file, the command fails with an error. Use aws-profile update to change credentials for an existing profile. All prompts are handled interactively — there are no required flags.
Flags
stacktape aws-profile createCLI 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.
Examples
Create a profile named default (used automatically when no profile is specified):
When prompted for a profile name, press Enter without typing anything. The profile is saved as default.
Create a named profile for a specific AWS account or purpose:
When prompted, enter a name like staging or production. You can then pass --profile staging to commands like deploy to use that profile's credentials.
Reduce log output to errors only:
Where credentials are stored
Credentials are stored in the default AWS credentials location in your home directory. This is the same location used by the AWS CLI and AWS SDKs, so profiles created with Stacktape work with any AWS tooling on the same machine.
For Console-managed AWS access, see Connecting your AWS account.
Related commands
aws-profile update— update credentials for an existing profile.aws-profile delete— remove a profile from your system.aws-profile list— list all configured AWS profiles.login— configure your Stacktape API key (separate from AWS credentials).