You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By calling resource "aws_security_group_rule", we want to add a secondary ALB SG on an already existing EC2 SG.
During the first apply, we add tcp 8080
The next apply should do nothing.
Actual Behavior
First apply: add tcp 8080 with new ALB SG ID as source.
Second apply: removes it.
Third apply: add tcp 8080 with new ALB SG ID as source.
Fourth apply: removes it.
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered:
and doc update:
NOTE on Security Groups and Security Group Rules: Terraform currently provides both a standalone Security Group Rule resource (a single ingress or egress rule), and a Security Group resource with ingress and egress rules defined in-line. At this time you cannot use a Security Group with in-line rules in conjunction with any Security Group Rule resources. Doing so will cause a conflict of rule settings and will overwrite rules.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 14, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.8.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
terraform apply
-> add tcp 8080 to the existing security group elb_nge_wsexpinternal
[…]
terraform apply
-> remove tcp 8080 to the existing security group elb_nge_wsexpinternal
[…]
~ module.asg_service_tg32.aws_security_group.lc_ec2_sg
ingress.#: "2" => "1"
ingress.157001861.cidr_blocks.#: "0" => "0"
ingress.157001861.from_port: "8080" => "0"
ingress.157001861.protocol: "tcp" => ""
ingress.157001861.security_groups.#: "1" => "0"
ingress.157001861.security_groups.3563814243: "sg-339a8f55" => ""
ingress.157001861.self: "false" => "false"
ingress.157001861.to_port: "8080" => "0"
ingress.414090347.cidr_blocks.#: "0" => "0"
ingress.414090347.from_port: "8080" => "8080"
ingress.414090347.protocol: "tcp" => "tcp"
ingress.414090347.security_groups.#: "1" => "1"
ingress.414090347.security_groups.541904824: "sg-92576af4" => "sg-92576af4"
ingress.414090347.self: "false" => "false"
ingress.414090347.to_port: "8080" => "8080"
and so on.
Expected Behavior
By calling resource "aws_security_group_rule", we want to add a secondary ALB SG on an already existing EC2 SG.
During the first apply, we add tcp 8080
The next apply should do nothing.
Actual Behavior
First apply: add tcp 8080 with new ALB SG ID as source.
Second apply: removes it.
Third apply: add tcp 8080 with new ALB SG ID as source.
Fourth apply: removes it.
Steps to Reproduce
terraform apply
terraform apply
The text was updated successfully, but these errors were encountered: