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

provider/aws: Discover supported EC2 platforms (EC2 Classic/VPC) #7568

Merged

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jul 9, 2016

This will make it possible/easier to make decisions based on supported EC2 platforms (VPC and/or EC2 Classic) in the context of any AWS resource which needs make such decisions.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#differences-ec2-classic-vpc

This would help in #6387, #9744 and possibly in aws_instance, aws_db_instance (security_groups vs vpc_security_group_ids). I'm not 100% sure about the latter because we may actually need to allow security_groups for VPC accounts too, because that's how you reference SGs in the default VPCs.

make test TEST=./builtin/providers/aws TESTARGS='-run=TestGetSupportedEC2Platforms -v'
 2>/dev/null
==> Checking that code complies with gofmt requirements...
==> Checking AWS provider for unchecked errors...
==> NOTE: at this time we only look for uncheck errors in the AWS package
go generate $(go list ./... | grep -v /terraform/vendor/)
go test -i ./builtin/providers/aws || exit 1
echo ./builtin/providers/aws | \
		xargs -t -n4 go test -run=TestGetSupportedEC2Platforms -v -timeout=30s -parallel=4
=== RUN   TestGetSupportedEC2Platforms
--- PASS: TestGetSupportedEC2Platforms (0.00s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	0.031s

This will make it possible/easier to make decisions based on supported EC2 platforms (VPC and/or EC2 Classic)
in the context of any AWS resource which needs make such decisions.
@radeksimko radeksimko force-pushed the f-aws-supported-platforms branch from df9c37b to d27d5a4 Compare March 16, 2017 20:51
Copy link
Contributor

@grubernaut grubernaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@radeksimko radeksimko merged commit 5076037 into hashicorp:master Mar 16, 2017
@radeksimko radeksimko deleted the f-aws-supported-platforms branch March 16, 2017 21:11
@radeksimko
Copy link
Member Author

radeksimko commented Mar 16, 2017

I won't mention this in Changelog as it has no direct impact on the user.

@ghost
Copy link

ghost commented Apr 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants