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
Using Environment Variables
Section titled “Using Environment Variables”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.
export DEPLOYPORT_PROFILE=myapp-proddeployport login
Using --profile
flag
Section titled “Using --profile flag”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:
deployport login --profile=myapp-proddeployport 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
.