Switching to IAM Role from IAM User for Batch Setup

Hi Team,

Just want to know whether we can change the parameters in config.yml file.

Instead of hardcoding IAM User AWS Secret Key or Access Key , can we use IAM Role . Or this mandatory to use IAM user parameters

aws:

Credentials can be hardcoded or set in environment variables

access_key_id: XXXXXXXXXXXX
secret_access_key: XXXXXXXXXX

Any suggestion will be helpful.

You can use an IAM role but you’ll still need to specify the access key and secret key, however you can do this by specifying environment variables as documented here.

As long as your role can access temporary IAM credentials (and inject them into the environment) this should work without any issues.