Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Crash when awscli profile is wrong? #32

Open
hamidnazari opened this issue Sep 23, 2015 · 0 comments
Open

Crash when awscli profile is wrong? #32

hamidnazari opened this issue Sep 23, 2015 · 0 comments

Comments

@hamidnazari
Copy link
Owner

$ amibaker recipes/pm-dev.yaml 
Running aws --output json --profile dev ec2 describe-subnets --subnet-ids subnet-xxxxxxxx

Unknown component: credential_provider
Traceback (most recent call last):
File "/home/alex/.virtualenvs/general/bin/amibaker", line 9, in <module>
load_entry_point('amibaker==0.8.2', 'console_scripts', 'amibaker')()
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/main.py", line 57, in main
run_recipes(args, args.recipe)
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/main.py", line 16, in run_recipes
baker.bake()
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/ami_baker.py", line 23, in bake
ec2.instantiate()
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/ami_ec2.py", line 15, in instantiate
self.__create_security_group()
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/ami_ec2.py", line 194, in __create_security_group
vpc_id = self.__get_vpc_id()
File "/home/alex/.virtualenvs/general/lib/python2.7/site-packages/amibaker/ami_ec2.py", line 191, in __get_vpc_id
return subnet['Subnets'][0]['VpcId']
TypeError: 'bool' object has no attribute '__getitem__'```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant