I’m trying to work through this tutorial for the fastec2
tool: https://www.fast.ai/2019/02/15/fastec2/
I’m running this command:
fe2 launch --name base --ami ami-0c55b159cbfafe1f0 --disksize 50 --instancetype m5.xlarge --secgroupname <my security group name> --keyname <my keyname>
I’m getting this stack trace:
Traceback (most recent call last):
File "/Users/gGandenberger/anaconda3/envs/fastai/bin/fe2", line 10, in <module>
sys.exit(main())
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fastec2/__init__.py", line 9, in main
else: fire.Fire(EC2)
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fire/core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fire/core.py", line 366, in _Fire
component, remaining_args)
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fire/core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fastec2/ec2.py", line 347, in launch
print(self.get_launch(name, ami, disksize, instancetype, keyname, secgroupname, iops, spot))
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fastec2/ec2.py", line 335, in get_launch
secgroupid = self.get_secgroup(secgroupname).id
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fastec2/ec2.py", line 168, in get_secgroup
vpc = self.resource('vpcs', isDefault='true')
File "/Users/gGandenberger/anaconda3/envs/fastai/lib/python3.7/site-packages/fastec2/ec2.py", line 114, in resource
except StopIteration: raise KeyError(f'Resource not found: {coll_name}; {filters}') from None
KeyError: "Resource not found: vpcs; {'isDefault': 'true'}"