Using non-default profile
See original GitHub issueIs there a simple way to use a non-default profile by specifying it’s name? Like on boto there is
boto.connect_ec2(profile_name="dev-profile")
I see that I can construct a session with credentials and region, but I don’t see an ability to just refer to the profile’s name
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Named profiles for the AWS CLI - AWS Command Line Interface
Create and use name profiles for AWS CLI commands. ... The first [default] is used when you run a AWS CLI command with...
Read more >aws cdk to use non-default profile - Stack Overflow
So I created a new account and a new profile cdkprof using aws configure --profile cdkprof . I have verified in ~/.aws/credentials and...
Read more >Configuration and credential file settings - 亚马逊云科技
You can specify a non-default location for the files by setting the AWS_CONFIG_FILE and AWS_SHARED_CREDENTIALS_FILE environment variables to another local path.
Read more >Set your Default Profile's Name in AWS CLI | bobbyhadz
In order to set the name for the default AWS CLI profile, set the `AWS_PROFILE` environment variable to the name of the profile...
Read more >IAM Configuration Guide | aws-runas - GitHub Pages
aws inside your user's home directory. If you need to use a non-default credentials file location, you can set the AWS_SHARED_CREDENTIALS_FILE environment ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@revmischa This is what I was able to come up with. Should print out all available boto profiles.
That’s a terrible answer