-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Workaround for bug when updating description of a rule with protocol all #34
Workaround for bug when updating description of a rule with protocol all #34
Conversation
Error: "Error updating security group rule description: InvalidParameterValue: When protocol is ALL, you cannot specify from-port." Issue: hashicorp/terraform-provider-aws#1920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please add "Known issues" section to README.md.
main.tf
Outdated
@@ -111,14 +111,18 @@ resource "aws_security_group_rule" "ingress_with_self" { | |||
resource "aws_security_group_rule" "egress_rules" { | |||
count = "${var.create ? length(var.egress_rules) : 0}" | |||
|
|||
lifecycle { | |||
"ignore_changes" = ["description"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove quotes from ignore_changes
main.tf
Outdated
security_group_id = "${aws_security_group.this.id}" | ||
type = "egress" | ||
|
||
cidr_blocks = ["${var.egress_cidr_blocks}"] | ||
ipv6_cidr_blocks = ["${var.egress_ipv6_cidr_blocks}"] | ||
prefix_list_ids = ["${var.egress_prefix_list_ids}"] | ||
description = "${element(var.rules[var.egress_rules[count.index]], 3)}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this new line
v1.12.0 is released. Thanks for the contribution! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Error:
"Error updating security group rule description:
InvalidParameterValue: When protocol is ALL, you cannot specify
from-port."
Issue:
hashicorp/terraform-provider-aws#1920