Skip to main content

Authenticating Idem with providers

To authenticate to different environments, Idem uses a credentials file that you create.

Create your credential file

You store credentials in a credentials.yaml file that follows this pattern:

credentials.yaml
environment_1:
default_profile:
key_1: value_1
key_2: value_2
profile_2:
key_1: value_1
key_2: value_2
environment_2:
default_profile:
key_1: value_1
key_2: value_2
profile_2:
key_1: value_1
key_2: value_2

For example:

aws:
default:
id: xxxxxxxxxxxxxxxxx
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
region: us-east-1
test_account:
id: xxxxxxxxxxxxxxxxx
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
region: us-west-1
azure:
default:
client_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
subscription_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
tenant: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
demo_account:
client_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
subscription_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
tenant: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

The environments correspond to your installed plug-ins. See Connecting Idem to providers.