-
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
Issue #4260 New datasource: aws_network_acls #4966
Conversation
aws/data_source_aws_network_acls.go
Outdated
|
||
"vpc_id": { | ||
Type: schema.TypeString, | ||
Required: true, |
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.
This parameter does not look required for the API call and its valid to want to search for Network ACLs across multiple VPCs, so it should be made optional or removed (in preference of filter
): https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#DescribeNetworkAclsInput
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.
Thanks for getting this in @saravanan30erd! There was one issue where d.SetId()
was still referencing d.Get("vpc_id").(string)
which could be ""
when not defined, so took the liberty to switch that resource.UniqueId()
and ensured the testing would have caught that scenario that so we can get this merged and released this week. You rock! 👍
make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsNetworkAcls'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccDataSourceAwsNetworkAcls -timeout 120m
=== RUN TestAccDataSourceAwsNetworkAcls_basic
--- PASS: TestAccDataSourceAwsNetworkAcls_basic (38.42s)
=== RUN TestAccDataSourceAwsNetworkAcls_Filter
--- PASS: TestAccDataSourceAwsNetworkAcls_Filter (27.23s)
=== RUN TestAccDataSourceAwsNetworkAcls_Tags
--- PASS: TestAccDataSourceAwsNetworkAcls_Tags (26.88s)
=== RUN TestAccDataSourceAwsNetworkAcls_VpcID
--- PASS: TestAccDataSourceAwsNetworkAcls_VpcID (27.24s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 119.800s
This has been released in version 1.25.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 #4260
Output from acceptance testing: