Closed cugu closed 9 months ago
I am finding it hard to repro this as its not currently possible to create an EC2 instance without a VPC, as far as I can tell
However it doesn't appear as though VPC is required for the delete procedure, so I don't see why we can't just set a default for this value if it doesn't exist
Not sure how this occurred, but had this happen in an investigation. Thanks for the fix!
instance.Delete() fails if no VPC is attached.
Failing example code snippet:
A key error is thrown at: https://github.com/google/cloud-forensics-utils/blob/a71b13c3a7108e4d37879007617203c5e34170ff/libcloudforensics/providers/aws/internal/ec2.py#L250