Open
Description
I have two profiles in my .aws folder.
> cat config
[office]
output = json
region = us-east-1
[profile personal]
output = json
region = us-east-1
When I login to aws-shell I provide the profile
> aws-shell -p personal
Below is the output of '.profile'
aws> .profile
Current shell profile: personal
When I did 'ec2 describe-instances' it list all ec2's under my 'office' profile instead of 'personal'.
- I got a long list of ec2's for the below.
aws> ec2 describe-instances
{......}
- While below is the output if I specify --profile for 'ec2 describe-instances' command.
aws> ec2 describe-instances --profile personal
{
"Reservations": []
}
Since I set profile while entering aws-shell. I would expect both the above two cases (1 and 2) to return the same result i.e. the one returned by 2 (as it is correct). I would expect the same from 1 as well.
I am using aws-shell version (0.1.1)