aws / aws-parallelcluster

AWS ParallelCluster is an AWS supported Open Source cluster management tool to deploy and manage HPC clusters in the AWS cloud.
https://github.com/aws/aws-parallelcluster
Apache License 2.0
817 stars 310 forks source link

Feature request: specify AWS credentials either with aws_profile item in aws section of config, or with --profile command line option #1195

Open joeydumont opened 5 years ago

joeydumont commented 5 years ago

Environment: -aws-parallelcluster==2.4.0

I would like to be able to specify the AWS credentials through the use of a profile ~.aws/credentials, as is done with most other AWS utilities. In the case of pcluster, this could be achieved by adding aws_profile item in the [aws] section of the configuration file, or by adding support for the --profile command-line option.

demartinofra commented 5 years ago

Hi Joey,

Thank you for opening this feature request. Supporting profiles like aws cli does (with a --profile cli option) is a very valid enhancement and we'll take this into account for the upcoming releases of ParallelCluster.

Francesco

HarryMWinters commented 4 years ago

FWIW @joeydumont using export AWS_PROFILE=<you-profile> has worked for me when running pcluster on a system with multiple AWS profiles.