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

[Enhancement]: aws_network_acl better error message for duplicate NACL #31888

Open
Nuru opened this issue Jun 10, 2023 · 2 comments
Open

[Enhancement]: aws_network_acl better error message for duplicate NACL #31888

Nuru opened this issue Jun 10, 2023 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/vpc Issues and PRs that pertain to the vpc service.

Comments

@Nuru
Copy link

Nuru commented Jun 10, 2023

Description

AWS VPC subnets may only have a single Network ACL (NACL) associated with them, so of course it is appropriate to generate an error when you try to associate a second one. However, the error message is confusing:

Error: creating EC2 Network ACL: creating EC2 Network ACL (acl-XXXXXXXXXXXXXXXXX) Association: InvalidAssociationID.NotFound: The association ID 'aclassoc-XXXXXXXXXXXXXXXXX' does not exist

See #12152 for reproduction.

I am requesting a better error message, along the lines of

Error: creating EC2 Network ACL Association: Subnet 'subnet-XXXXXXXXXXXXXXXXX' already has Network ACL Association ID 'aclassoc-XXXXXXXXXXXXXXXXX' associating it with EC2 Network ACL 'acl-XXXXXXXXXXXXXXXXX'.

Affected Resource(s) and/or Data Source(s)

  • aws_network_acl

Potential Terraform Configuration

No response

References

Would you like to implement a fix?

No

@Nuru Nuru added enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Jun 10, 2023
@github-actions github-actions bot added the service/vpc Issues and PRs that pertain to the vpc service. label Jun 10, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@DhruvinSoni30
Copy link

Agree! A better error message is needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/vpc Issues and PRs that pertain to the vpc service.
Projects
None yet
Development

No branches or pull requests

3 participants