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

(aws 1.2.5) aws ec2 create-network-acl-entry : Invalid value 'tcp' for IP protocol #508

Closed
marekjagielski opened this issue Nov 25, 2013 · 1 comment
Assignees

Comments

@marekjagielski
Copy link

When I run command:
aws ec2 create-network-acl-entry --network-acl-id acl-57e3e835 --rule-number 100 --protocol tcp --rule-action allow --ingress --cidr-block 0.0.0.0/0 --port-range From=22,To=22 --region eu-west-1 --profile sic-int

I get an error:
A client error (InvalidParameterValue) occurred: Invalid value 'tcp' for IP protocol. Unknown protocol.

However there is no problem when I run with '6' in place of 'tcp':
aws ec2 create-network-acl-entry --network-acl-id acl-57e3e835 --rule-number 100 --protocol 6 --rule-action allow --ingress --cidr-block 0.0.0.0/0 --port-range From=22,To=22 --region eu-west-1 --profile sic-int

It is not consistent with specification in: aws ec2 create-network-acl-entry help

@garnaat
Copy link
Contributor

garnaat commented Nov 27, 2013

Yes, this is inconsistent with the documentation. The API only takes numbers but I think allowing tcp, udp, and icmp to be passed as strings makes sense. I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants