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

Issue #4260 New datasource: aws_network_acls #4966

Merged
merged 4 commits into from
Jun 26, 2018

Conversation

saravanan30erd
Copy link
Contributor

Fixes #4260

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccDataSourceAwsNetworkAcls_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -run=TestAccDataSourceAwsNetworkAcls_basic -timeout 120m
=== RUN   TestAccDataSourceAwsNetworkAcls_basic
--- PASS: TestAccDataSourceAwsNetworkAcls_basic (145.23s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	145.279s
...

@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Jun 23, 2018
@bflad bflad added new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service. labels Jun 25, 2018

"vpc_id": {
Type: schema.TypeString,
Required: true,
Copy link
Contributor

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

@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Jun 25, 2018
@ghost ghost added the size/L Managed by automation to categorize the size of a PR. label Jun 25, 2018
@bflad bflad removed the waiting-response Maintainers are waiting on response from community or contributor. label Jun 25, 2018
Copy link
Contributor

@bflad bflad left a 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

@bflad bflad added this to the v1.25.0 milestone Jun 26, 2018
@bflad bflad merged commit d05c3a0 into hashicorp:master Jun 26, 2018
bflad added a commit that referenced this pull request Jun 26, 2018
@bflad
Copy link
Contributor

bflad commented Jun 27, 2018

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.

@ghost
Copy link

ghost commented Apr 5, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service. size/L Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: new data source for aws_network_acl
2 participants