fastai / fastec2

AWS EC2 computer management for regular folks
121 stars 19 forks source link

fe2 freeze succeeds but throws KeyError on SnapshotId #20

Open poppingtonic opened 2 years ago

poppingtonic commented 2 years ago
Traceback (most recent call last):                                                                                                         
  File "/home/mu/miniconda3/envs/rave/bin/fe2", line 8, in <module>                                                                        
    sys.exit(main())                                                                                                                       
  File "/home/mu/miniconda3/envs/rave/lib/python3.9/site-packages/fastec2/__init__.py", line 9, in main                                    
    else: fire.Fire(EC2)                                                                                                                   
  File "/home/mu/miniconda3/envs/rave/lib/python3.9/site-packages/fire/core.py", line 141, in Fire                                         
    component_trace = _Fire(component, args, parsed_flag_args, context, name)                                                              
  File "/home/mu/miniconda3/envs/rave/lib/python3.9/site-packages/fire/core.py", line 466, in _Fire                                        
    component, remaining_args = _CallAndUpdateTrace(                                                                                       
  File "/home/mu/miniconda3/envs/rave/lib/python3.9/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace                          
    component = fn(*varargs, **kwargs)                                                                                                     
  File "/home/mu/miniconda3/envs/rave/lib/python3.9/site-packages/fastec2/ec2.py", line 281, in freeze                                     
    snid = ami.block_device_mappings[0]['Ebs']['SnapshotId']                                                                               
KeyError: 'SnapshotId'