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

resource/aws_network_acl: Fix issue where updating nacl subnet assoca… #13382

Merged
merged 2 commits into from
May 20, 2020
Merged

resource/aws_network_acl: Fix issue where updating nacl subnet assoca… #13382

merged 2 commits into from
May 20, 2020

Conversation

scottclk
Copy link
Contributor

@scottclk scottclk commented May 19, 2020

…tions fails with InvalidAssociationID.NotFound

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #12922

Release note for CHANGELOG:

* resource/aws_network_acl: Fix issue where updating nacl subnet assocations fails with InvalidAssociationID.NotFound

Acceptance Testing

Before code change:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetsDelete'
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (53.98s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetChange'
--- FAIL: TestAccAWSNetworkAcl_SubnetChange (57.31s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_Subnets'
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (54.06s)
--- PASS: TestAccAWSNetworkAcl_Subnets (71.58s)

All Failures have same error:

Error: InvalidAssociationID.NotFound: The association ID 'aclassoc-<id>' does not exist
status code: 400, request id: <id>

Output from code change acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetsDelete'
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (66.27s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetChange'
--- PASS: TestAccAWSNetworkAcl_SubnetChange (65.85s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_Subnets'
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (63.98s)
--- PASS: TestAccAWSNetworkAcl_Subnets (69.76s)

…tions fails with InvalidAassociationID.NotFound
@scottclk scottclk requested a review from a team May 19, 2020 09:12
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/ec2 Issues and PRs that pertain to the ec2 service. labels May 19, 2020
@ewbankkit
Copy link
Contributor

@scottclk Thanks for this.
Can you please add an acceptance test to exercise this?

@scottclk
Copy link
Contributor Author

@ewbankkit no problem. I'm happy to add another acceptance test but the existing TestAccAWSNetworkAcl_SubnetChange represents the issue this fix resolves.
I included the output above showing that this, and the other nacl tests, are failing on the current master branch but passing with the proposed code change.
Any additional test I was to create would be almost identical to the one that already exists TestAccAWSNetworkAcl_SubnetChange.

@ewbankkit
Copy link
Contributor

@scottlk Thanks.
I have verified that without your fix, some acceptance tests fail:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSNetworkAcl_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 2 -run=TestAccAWSNetworkAcl_ -timeout 120m
=== RUN   TestAccAWSNetworkAcl_basic
=== PAUSE TestAccAWSNetworkAcl_basic
=== RUN   TestAccAWSNetworkAcl_disappears
=== PAUSE TestAccAWSNetworkAcl_disappears
=== RUN   TestAccAWSNetworkAcl_Egress_ConfigMode
=== PAUSE TestAccAWSNetworkAcl_Egress_ConfigMode
=== RUN   TestAccAWSNetworkAcl_Ingress_ConfigMode
=== PAUSE TestAccAWSNetworkAcl_Ingress_ConfigMode
=== RUN   TestAccAWSNetworkAcl_EgressAndIngressRules
=== PAUSE TestAccAWSNetworkAcl_EgressAndIngressRules
=== RUN   TestAccAWSNetworkAcl_OnlyIngressRules_basic
=== PAUSE TestAccAWSNetworkAcl_OnlyIngressRules_basic
=== RUN   TestAccAWSNetworkAcl_OnlyIngressRules_update
=== PAUSE TestAccAWSNetworkAcl_OnlyIngressRules_update
=== RUN   TestAccAWSNetworkAcl_CaseSensitivityNoChanges
=== PAUSE TestAccAWSNetworkAcl_CaseSensitivityNoChanges
=== RUN   TestAccAWSNetworkAcl_OnlyEgressRules
=== PAUSE TestAccAWSNetworkAcl_OnlyEgressRules
=== RUN   TestAccAWSNetworkAcl_SubnetChange
=== PAUSE TestAccAWSNetworkAcl_SubnetChange
=== RUN   TestAccAWSNetworkAcl_Subnets
=== PAUSE TestAccAWSNetworkAcl_Subnets
=== RUN   TestAccAWSNetworkAcl_SubnetsDelete
=== PAUSE TestAccAWSNetworkAcl_SubnetsDelete
=== RUN   TestAccAWSNetworkAcl_ipv6Rules
=== PAUSE TestAccAWSNetworkAcl_ipv6Rules
=== RUN   TestAccAWSNetworkAcl_ipv6ICMPRules
=== PAUSE TestAccAWSNetworkAcl_ipv6ICMPRules
=== RUN   TestAccAWSNetworkAcl_ipv6VpcRules
=== PAUSE TestAccAWSNetworkAcl_ipv6VpcRules
=== RUN   TestAccAWSNetworkAcl_espProtocol
=== PAUSE TestAccAWSNetworkAcl_espProtocol
=== CONT  TestAccAWSNetworkAcl_basic
=== CONT  TestAccAWSNetworkAcl_SubnetChange
--- PASS: TestAccAWSNetworkAcl_basic (39.22s)
=== CONT  TestAccAWSNetworkAcl_espProtocol
--- FAIL: TestAccAWSNetworkAcl_SubnetChange (55.73s)
    testing.go:683: Step 2 error: errors during apply:
        
        Error: InvalidAssociationID.NotFound: The association ID 'aclassoc-04b39ad18b9c15ead' does not exist
        	status code: 400, request id: 1575b133-8f55-48e7-95bc-e76def5b494f
        
          on /tmp/tf-test368273622/main.tf line 27:
          (source code not available)
        
        
=== CONT  TestAccAWSNetworkAcl_ipv6VpcRules
--- PASS: TestAccAWSNetworkAcl_espProtocol (37.56s)
=== CONT  TestAccAWSNetworkAcl_ipv6ICMPRules
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (37.97s)
=== CONT  TestAccAWSNetworkAcl_ipv6Rules
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (34.13s)
=== CONT  TestAccAWSNetworkAcl_SubnetsDelete
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (44.59s)
=== CONT  TestAccAWSNetworkAcl_Subnets
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (58.86s)
    testing.go:683: Step 2 error: errors during apply:
        
        Error: InvalidAssociationID.NotFound: The association ID 'aclassoc-0184c54e453ac4c77' does not exist
        	status code: 400, request id: 7938a875-9389-4264-bec7-20684e467ebe
        
          on /tmp/tf-test876147878/main.tf line 17:
          (source code not available)
        
        
=== CONT  TestAccAWSNetworkAcl_EgressAndIngressRules
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (37.61s)
=== CONT  TestAccAWSNetworkAcl_OnlyEgressRules
--- PASS: TestAccAWSNetworkAcl_Subnets (76.68s)
=== CONT  TestAccAWSNetworkAcl_CaseSensitivityNoChanges
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (38.94s)
=== CONT  TestAccAWSNetworkAcl_OnlyIngressRules_update
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (45.41s)
=== CONT  TestAccAWSNetworkAcl_OnlyIngressRules_basic
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (44.81s)
=== CONT  TestAccAWSNetworkAcl_Ingress_ConfigMode
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (68.44s)
=== CONT  TestAccAWSNetworkAcl_Egress_ConfigMode
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (88.69s)
=== CONT  TestAccAWSNetworkAcl_disappears
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (87.78s)
--- PASS: TestAccAWSNetworkAcl_disappears (37.22s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	431.156s
FAIL
GNUmakefile:26: recipe for target 'testacc' failed
make: *** [testacc] Error 1

but with the fix, they all pass:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSNetworkAcl_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 2 -run=TestAccAWSNetworkAcl_ -timeout 120m
=== RUN   TestAccAWSNetworkAcl_basic
=== PAUSE TestAccAWSNetworkAcl_basic
=== RUN   TestAccAWSNetworkAcl_disappears
=== PAUSE TestAccAWSNetworkAcl_disappears
=== RUN   TestAccAWSNetworkAcl_Egress_ConfigMode
=== PAUSE TestAccAWSNetworkAcl_Egress_ConfigMode
=== RUN   TestAccAWSNetworkAcl_Ingress_ConfigMode
=== PAUSE TestAccAWSNetworkAcl_Ingress_ConfigMode
=== RUN   TestAccAWSNetworkAcl_EgressAndIngressRules
=== PAUSE TestAccAWSNetworkAcl_EgressAndIngressRules
=== RUN   TestAccAWSNetworkAcl_OnlyIngressRules_basic
=== PAUSE TestAccAWSNetworkAcl_OnlyIngressRules_basic
=== RUN   TestAccAWSNetworkAcl_OnlyIngressRules_update
=== PAUSE TestAccAWSNetworkAcl_OnlyIngressRules_update
=== RUN   TestAccAWSNetworkAcl_CaseSensitivityNoChanges
=== PAUSE TestAccAWSNetworkAcl_CaseSensitivityNoChanges
=== RUN   TestAccAWSNetworkAcl_OnlyEgressRules
=== PAUSE TestAccAWSNetworkAcl_OnlyEgressRules
=== RUN   TestAccAWSNetworkAcl_SubnetChange
=== PAUSE TestAccAWSNetworkAcl_SubnetChange
=== RUN   TestAccAWSNetworkAcl_Subnets
=== PAUSE TestAccAWSNetworkAcl_Subnets
=== RUN   TestAccAWSNetworkAcl_SubnetsDelete
=== PAUSE TestAccAWSNetworkAcl_SubnetsDelete
=== RUN   TestAccAWSNetworkAcl_ipv6Rules
=== PAUSE TestAccAWSNetworkAcl_ipv6Rules
=== RUN   TestAccAWSNetworkAcl_ipv6ICMPRules
=== PAUSE TestAccAWSNetworkAcl_ipv6ICMPRules
=== RUN   TestAccAWSNetworkAcl_ipv6VpcRules
=== PAUSE TestAccAWSNetworkAcl_ipv6VpcRules
=== RUN   TestAccAWSNetworkAcl_espProtocol
=== PAUSE TestAccAWSNetworkAcl_espProtocol
=== CONT  TestAccAWSNetworkAcl_basic
=== CONT  TestAccAWSNetworkAcl_SubnetChange
--- PASS: TestAccAWSNetworkAcl_basic (38.95s)
=== CONT  TestAccAWSNetworkAcl_espProtocol
--- PASS: TestAccAWSNetworkAcl_SubnetChange (71.46s)
=== CONT  TestAccAWSNetworkAcl_ipv6VpcRules
--- PASS: TestAccAWSNetworkAcl_espProtocol (37.47s)
=== CONT  TestAccAWSNetworkAcl_ipv6ICMPRules
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (38.15s)
=== CONT  TestAccAWSNetworkAcl_ipv6Rules
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (35.22s)
=== CONT  TestAccAWSNetworkAcl_SubnetsDelete
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (44.27s)
=== CONT  TestAccAWSNetworkAcl_Subnets
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (69.66s)
=== CONT  TestAccAWSNetworkAcl_OnlyIngressRules_basic
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (44.84s)
=== CONT  TestAccAWSNetworkAcl_OnlyEgressRules
--- PASS: TestAccAWSNetworkAcl_Subnets (76.75s)
=== CONT  TestAccAWSNetworkAcl_CaseSensitivityNoChanges
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (39.20s)
=== CONT  TestAccAWSNetworkAcl_OnlyIngressRules_update
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (44.53s)
=== CONT  TestAccAWSNetworkAcl_Ingress_ConfigMode
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (68.40s)
=== CONT  TestAccAWSNetworkAcl_EgressAndIngressRules
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (88.09s)
=== CONT  TestAccAWSNetworkAcl_Egress_ConfigMode
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (38.65s)
=== CONT  TestAccAWSNetworkAcl_disappears
--- PASS: TestAccAWSNetworkAcl_disappears (36.19s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (89.03s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	452.343s

@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels May 20, 2020
_, err = conn.ReplaceNetworkAclAssociation(&ec2.ReplaceNetworkAclAssociationInput{
AssociationId: association.NetworkAclAssociationId,
NetworkAclId: defaultAcl.NetworkAclId,
})
if err != nil {
return err
if isAWSErr(err, "InvalidAssociationID.NotFound", "") {
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be continue so the for loop and the rest of the resourceAwsNetworkAclUpdate function will process. 👍

Suggested change
return nil
continue

Copy link
Contributor

Choose a reason for hiding this comment

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

(or update the if err != nil line to if err != nil && !isAWSErr(err, "InvalidAssociationID.NotFound", ""))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch thanks for your feedback 👍

@bflad bflad self-assigned this May 20, 2020
@bflad bflad added this to the v2.63.0 milestone May 20, 2020
@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label May 20, 2020
bflad added a commit that referenced this pull request May 20, 2020
Reference: #13408

While this resource was not actually performing multiple resource import, the commented code was showing up in searches for it (via `.SetType()`). As an added bonus to the dramatically simpler code (since Terraform automatic refresh during import), this removes the legacy `import_` file. Yay!

Output from acceptance testing (see #13382 for fixes to _SubnetsChange and _SubnetsDelete tests):

```
--- PASS: TestAccAWSNetworkAcl_espProtocol (34.51s)
--- PASS: TestAccAWSNetworkAcl_basic (35.15s)
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (36.21s)
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (37.51s)
--- PASS: TestAccAWSNetworkAcl_disappears (37.95s)
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (38.20s)
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (38.68s)
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (44.12s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (44.86s)
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (45.01s)
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (55.50s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (65.91s)
--- PASS: TestAccAWSNetworkAcl_SubnetChange (66.79s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (74.44s)
--- PASS: TestAccAWSNetworkAcl_Subnets (75.89s)
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (76.75s)
```
@scottclk
Copy link
Contributor Author

@bflad code updated as discussed and double checked all acceptance tests still pass.

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetsDelete'
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (65.77s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_SubnetChange'
--- PASS: TestAccAWSNetworkAcl_SubnetChange (65.44s)

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSNetworkAcl_Subnets'
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (65.37s)
--- PASS: TestAccAWSNetworkAcl_Subnets (70.49s)

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label May 20, 2020
@scottclk scottclk requested a review from bflad May 20, 2020 10:17
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.

Looks great, thanks so much @scottclk 🚀

Output from acceptance testing:

--- PASS: TestAccAWSNetworkAcl_basic (37.40s)
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (51.54s)
--- PASS: TestAccAWSNetworkAcl_disappears (22.76s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (75.61s)
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (60.15s)
--- PASS: TestAccAWSNetworkAcl_espProtocol (18.73s)
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (97.83s)
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (36.94s)
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (45.59s)
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (27.91s)
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (56.36s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (52.51s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (53.47s)
--- PASS: TestAccAWSNetworkAcl_SubnetChange (67.85s)
--- PASS: TestAccAWSNetworkAcl_Subnets (50.49s)
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (40.37s)

@bflad bflad merged commit c5d2343 into hashicorp:master May 20, 2020
bflad added a commit that referenced this pull request May 20, 2020
bflad added a commit that referenced this pull request May 21, 2020
Reference: #13408

While this resource was not actually performing multiple resource import, the commented code was showing up in searches for it (via `.SetType()`). As an added bonus to the dramatically simpler code (since Terraform automatic refresh during import), this removes the legacy `import_` file. Yay!

Output from acceptance testing (see #13382 for fixes to _SubnetsChange and _SubnetsDelete tests):

```
--- PASS: TestAccAWSNetworkAcl_espProtocol (34.51s)
--- PASS: TestAccAWSNetworkAcl_basic (35.15s)
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (36.21s)
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (37.51s)
--- PASS: TestAccAWSNetworkAcl_disappears (37.95s)
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (38.20s)
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (38.68s)
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (44.12s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (44.86s)
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (45.01s)
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (55.50s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (65.91s)
--- PASS: TestAccAWSNetworkAcl_SubnetChange (66.79s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (74.44s)
--- PASS: TestAccAWSNetworkAcl_Subnets (75.89s)
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (76.75s)
```
@ghost
Copy link

ghost commented May 22, 2020

This has been released in version 2.63.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

adamdecaf pushed a commit to adamdecaf/terraform-provider-aws that referenced this pull request May 28, 2020
… returning InvalidAssociationID.NotFound (hashicorp#13382)

Output from acceptance testing:

```
--- PASS: TestAccAWSNetworkAcl_basic (37.40s)
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (51.54s)
--- PASS: TestAccAWSNetworkAcl_disappears (22.76s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (75.61s)
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (60.15s)
--- PASS: TestAccAWSNetworkAcl_espProtocol (18.73s)
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (97.83s)
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (36.94s)
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (45.59s)
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (27.91s)
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (56.36s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (52.51s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (53.47s)
--- PASS: TestAccAWSNetworkAcl_SubnetChange (67.85s)
--- PASS: TestAccAWSNetworkAcl_Subnets (50.49s)
--- PASS: TestAccAWSNetworkAcl_SubnetsDelete (40.37s)
```
adamdecaf pushed a commit to adamdecaf/terraform-provider-aws that referenced this pull request May 28, 2020
…p#13419)

Reference: hashicorp#13408

While this resource was not actually performing multiple resource import, the commented code was showing up in searches for it (via `.SetType()`). As an added bonus to the dramatically simpler code (since Terraform automatic refresh during import), this removes the legacy `import_` file. Yay!

Output from acceptance testing (see hashicorp#13382 for fixes to _SubnetsChange and _SubnetsDelete tests):

```
--- PASS: TestAccAWSNetworkAcl_espProtocol (34.51s)
--- PASS: TestAccAWSNetworkAcl_basic (35.15s)
--- PASS: TestAccAWSNetworkAcl_ipv6ICMPRules (36.21s)
--- PASS: TestAccAWSNetworkAcl_OnlyEgressRules (37.51s)
--- PASS: TestAccAWSNetworkAcl_disappears (37.95s)
--- PASS: TestAccAWSNetworkAcl_EgressAndIngressRules (38.20s)
--- PASS: TestAccAWSNetworkAcl_ipv6VpcRules (38.68s)
--- PASS: TestAccAWSNetworkAcl_ipv6Rules (44.12s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_basic (44.86s)
--- PASS: TestAccAWSNetworkAcl_CaseSensitivityNoChanges (45.01s)
--- FAIL: TestAccAWSNetworkAcl_SubnetsDelete (55.50s)
--- PASS: TestAccAWSNetworkAcl_OnlyIngressRules_update (65.91s)
--- PASS: TestAccAWSNetworkAcl_SubnetChange (66.79s)
--- PASS: TestAccAWSNetworkAcl_Egress_ConfigMode (74.44s)
--- PASS: TestAccAWSNetworkAcl_Subnets (75.89s)
--- PASS: TestAccAWSNetworkAcl_Ingress_ConfigMode (76.75s)
```
@ghost
Copy link

ghost commented Jun 20, 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 Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update NACL Subnet Association Returns Error - InvalidAssociationID.NotFound
3 participants