aws / aws/aws-cli

source_profile only sources credentials?

Open
#3,334 5 comments 8 reactions 0 assignees View on GitHub
documentation feature-request p2
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

Took me a while to realise I had to explicitly set the `region` for each profile despite using `source_profile` to base the new profile on an existing one that defined a `region`, given that `source_credentials` also exists, is it intended behaviour for `source_profile` to not actually source a profile?

```
$ cat .aws/config
[default]
region = us-east-1

[profile solutions]
role_arn = arn:aws:iam::xxxxxxxxxxxxxx:role/solutions
source_profile = default
$ aws ec2 describe-availability-zones
{ ... snip ... }
$ aws ec2 describe-availability-zones --profile solutions
You must specify a region. You can also configure your region by running "aws configure".
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.