-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
data/aws_vpc: Expose enable_dns_* in aws_vpc data_source #1373
Conversation
Fixes: hashicorp#1310 ``` % make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsVpc_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -run=TestAccDataSourceAwsVpc_ -timeout 120m === RUN TestAccDataSourceAwsVpc_basic --- PASS: TestAccDataSourceAwsVpc_basic (57.65s) === RUN TestAccDataSourceAwsVpc_ipv6Associated --- PASS: TestAccDataSourceAwsVpc_ipv6Associated (56.97s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 114.644s ``` ``` % make testacc TEST=./aws TESTARGS='-run=TestAccAWSVpc_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -run=TestAccAWSVpc_ -timeout 120m === RUN TestAccAWSVpc_importBasic --- PASS: TestAccAWSVpc_importBasic (55.77s) === RUN TestAccAWSVpc_basic --- PASS: TestAccAWSVpc_basic (45.39s) === RUN TestAccAWSVpc_enableIpv6 --- PASS: TestAccAWSVpc_enableIpv6 (122.24s) === RUN TestAccAWSVpc_dedicatedTenancy --- PASS: TestAccAWSVpc_dedicatedTenancy (47.45s) === RUN TestAccAWSVpc_tags --- PASS: TestAccAWSVpc_tags (84.16s) === RUN TestAccAWSVpc_update --- PASS: TestAccAWSVpc_update (83.19s) === RUN TestAccAWSVpc_bothDnsOptionsSet --- PASS: TestAccAWSVpc_bothDnsOptionsSet (19.69s) === RUN TestAccAWSVpc_DisabledDnsSupport --- PASS: TestAccAWSVpc_DisabledDnsSupport (44.98s) === RUN TestAccAWSVpc_classiclinkOptionSet --- PASS: TestAccAWSVpc_classiclinkOptionSet (45.00s) === RUN TestAccAWSVpc_classiclinkDnsSupportOptionSet --- PASS: TestAccAWSVpc_classiclinkDnsSupportOptionSet (46.06s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 593.935s ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, thanks Paul!
make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsVpc_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccDataSourceAwsVpc_ -timeout 120m
=== RUN TestAccDataSourceAwsVpc_basic
--- PASS: TestAccDataSourceAwsVpc_basic (50.26s)
=== RUN TestAccDataSourceAwsVpc_ipv6Associated
--- PASS: TestAccDataSourceAwsVpc_ipv6Associated (51.24s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 101.568s
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSVpc_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSVpc_ -timeout 120m
=== RUN TestAccAWSVpc_importBasic
--- PASS: TestAccAWSVpc_importBasic (19.99s)
=== RUN TestAccAWSVpc_basic
--- PASS: TestAccAWSVpc_basic (16.27s)
=== RUN TestAccAWSVpc_enableIpv6
--- PASS: TestAccAWSVpc_enableIpv6 (41.19s)
=== RUN TestAccAWSVpc_dedicatedTenancy
--- PASS: TestAccAWSVpc_dedicatedTenancy (16.47s)
=== RUN TestAccAWSVpc_tags
--- PASS: TestAccAWSVpc_tags (29.17s)
=== RUN TestAccAWSVpc_update
--- PASS: TestAccAWSVpc_update (28.35s)
=== RUN TestAccAWSVpc_bothDnsOptionsSet
--- PASS: TestAccAWSVpc_bothDnsOptionsSet (15.53s)
=== RUN TestAccAWSVpc_DisabledDnsSupport
--- PASS: TestAccAWSVpc_DisabledDnsSupport (38.52s)
=== RUN TestAccAWSVpc_classiclinkOptionSet
--- PASS: TestAccAWSVpc_classiclinkOptionSet (16.52s)
=== RUN TestAccAWSVpc_classiclinkDnsSupportOptionSet
--- PASS: TestAccAWSVpc_classiclinkDnsSupportOptionSet (16.95s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 239.004s
@@ -647,3 +637,16 @@ func resourceAwsVpcInstanceImport( | |||
d.Set("assign_generated_ipv6_cidr_block", false) | |||
return []*schema.ResourceData{d}, nil | |||
} | |||
|
|||
func awsVpcDescribeVpcAttribute(attribute string, vpcId string, conn *ec2.EC2) (*ec2.DescribeVpcAttributeOutput, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
data/aws_vpc: Expose enable_dns_* in aws_vpc data_source
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Fixes: #1310