Hi,
This is my current security group attributes.
ingress = {
description = “HTTPS”
from_port = 443
to_port = 443
protocol = “tcp”
cidr_blocks = [“0.0.0.0/0”]
}
ingress = {
description = “HTTP”
from_port = 80
to_port = 80
protocol = “tcp”
cidr_blocks = [“0.0.0.0/0”]
}
ingress = {
description = “SSH”
from_port = 22
to_port = 22
protocol = “tcp”
cidr_blocks = [“0.0.0.0/0”]
}
egress = {
from_port = 0
to_port = 0
protocol = “-1”
cidr_blocks = [“0.0.0.0/0”]
ipv6_cidr_blocks = ["::/0"]
}
This is the error message I am receiving.
Error: Attribute redefined
on main.tf line 61, in resource “aws_security_group” “allow_web”:
61: ingress = {
The argument “ingress” was already set at main.tf:53,3-10. Each argument may
be set only once.