octl expects either environment variables or a profile file.
The tool will try to read:
OSC_ACCESS_KEYOSC_SECRET_KEYOSC_REGION
If no environment variables are defined, the tool expects to find a profile in a profile file.
- Default config path:
~/.osc/config.json- Can be set with
--configorOSC_CONFIG_FILE
- Can be set with
- Default profile name:
default- Can be set with
--profileorOSC_PROFILE
- Can be set with
If --config or --profile is set, octl will load the profile file without checking environment variables.
{
"default": {
"access_key": "MyAccessKey",
"secret_key": "MySecretKey",
"region": "eu-west-2"
}
}octl profile allows you to manage your profile file:
- octl profile list
- octl profile add
- octl profile delete
- octl profile use
Note: Environment variables take precedence. A profile marked as the default may not be used if relevant environment variables are set.