Amazon Web Services
There are many components within Wombat which utilise AWS services. You will find that each of these components
contains a configuration section under the field credentials
, of the format:
This section contains many fields and it isn’t immediately clear which of them are compulsory and which aren’t. This document aims to make it clear what each field is responsible for and how it might be used.
None of these fields are compulsory
The first thing to make clear is that all of these fields are optional. When all fields are left blank Wombat will
attempt to load credentials from a shared credentials file (~/.aws/credentials
). The profile loaded will be default
unless the AWS_PROFILE
environment variable is set.
Explicit Credentials
By explicitly setting the credentials you are using at the component level it’s possible to connect to components using different accounts within the same Wombat process.
Selecting a Profile
If you are using your shared credentials file but wish to explicitly select a profile set the profile
field:
Manual
If you are using long term credentials for your account you only need to set the fields id
and secret
:
If you are using short term credentials then you will also need to set the field token
:
Assuming a Role
It’s also possible to configure Wombat to
assume a role using your credentials by setting
the field role
to your target role ARN.
This does NOT require explicit credentials, but it’s possible to use both.
If you need to assume a role owned by another organisation they might require you to
provide an external ID,
in which case place it in the field role_external_id
: