mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 09:01:59 +03:00
13 lines
256 B
Terraform
13 lines
256 B
Terraform
resource "aws_security_group" "example" {
|
|
name = "example" # can use expressions here
|
|
|
|
dynamic "ingress" {
|
|
for_each = [22, 443]
|
|
content {
|
|
from_port = ingress.value
|
|
to_port = ingress.value
|
|
protocol = "tcp"
|
|
}
|
|
}
|
|
}
|