Skip to content

IAM Profiles

A profile is a name that combines a set of credentials and configurations stored locally on your computer. Some of these configurations include the credentials, region, and other settings such as output format.

The default profile is called default.

There are two ways you can specify a profile when invoking deployport CLI commands:

  • Using environment variables
  • Using --profile flag

The name of the environment variable to specify the name of the profile is DEPLOYPORT_PROFILE.

For example, the following command logs in and persists credentials in a profile called myapp-prod for the rest of the terminal session.

Terminal window
export DEPLOYPORT_PROFILE=myapp-prod
deployport login

When invoking any command of the deployport CLI you can specify the --profile.

For example, the following commands log into two separate profiles in the same terminal session:

Terminal window
deployport login --profile=myapp-prod
deployport login --profile=myapp-dev

When you specify --profile on a command, it overrides the environment variable DEPLOYPORT_PROFILE.

The CLI persists profile configurations at $HOME/.deployport/settings.yml while credentials are stored at $HOME/.deployport/credentials.yml.