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

provider/aws: Invalid protocol aws_network_acl_rule: Invalid Protocol 47 #1651

Closed
certnew opened this issue Sep 13, 2017 · 4 comments · Fixed by #4956
Closed

provider/aws: Invalid protocol aws_network_acl_rule: Invalid Protocol 47 #1651

certnew opened this issue Sep 13, 2017 · 4 comments · Fixed by #4956
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@certnew
Copy link

certnew commented Sep 13, 2017

Hi there,

Terraform Version

Terraform v0.10.3

Affected Resource(s)

aws_network_acl_rule

Terraform Configuration Files

resource "aws_network_acl_rule" "260" {
  network_acl_id = "${aws_network_acl.NACL-PUBLIC.id}"
  rule_number    = 260
  egress         = false
  protocol       = 47
  rule_action    = "allow"
  cidr_block     = "0.0.0.0/0"
}

Debug Output

Error applying plan:
1 error(s) occurred:

  • aws_network_acl_rule.260: 1 error(s) occurred:
  • aws_network_acl_rule.260: Invalid Protocol 47 for rule 260

Expected Behavior

That the terraform plan completes without giving any errors.

Actual Behavior

Rule actually created and there is in state file

Steps to Reproduce

  1. terraform apply

References

Similar to hashicorp/terraform#12103

@Ninir Ninir added the bug Addresses a defect in current functionality. label Sep 18, 2017
@radeksimko radeksimko added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jan 28, 2018
@jrwilk01
Copy link

Similar issues have been fixed by adding to this method:

https://github.com/terraform-providers/terraform-provider-aws/blob/b8d4e1570fc43a2acee6b6e47f63c9db6b067fa2/aws/network_acl_entry.go#L98

Seems like hard coding magic values in the source will lead to more problems.

@bflad
Copy link
Contributor

bflad commented Jun 25, 2018

The full list of protocol names/numbers has been added now via #4956 and will release with version 1.25.0 of the AWS provider, likely middle of this week. While it may not be ideal when new protocol names are assigned, it was a simple change to add support for the above case.

@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
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants