Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic when security groups are on EC2-Classic #89

Merged
merged 2 commits into from
Apr 8, 2017

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Apr 8, 2017

Fix #88

When security groups are on EC2-Classic, VPC ID is nil.
ref: https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#SecurityGroup

So, use DescribeAccountAttirbutes API instead of DescribeVpcs API to detect the default VPC. This response is none when support EC2-Classic platform.

@wata727 wata727 merged commit 9bd032f into master Apr 8, 2017
@wata727 wata727 deleted the fix_panic_for_ec2-classic branch April 8, 2017 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant