Back to AWS Terraform templates index <–
Aws Security group rule with Terraform
![]()
Aws security group rule by the Sogeti community.
Template Locations
Online documentation
Template reference
Service description
module "Aws_Security_group_rule" {
vpc_id = "vpc-0094d1a650b1d3486"
sg_name = "launch-wizard-5"
type = "ingress"
from_port = 0
to_port = 65535
protocol = "tcp"
cidr_blocks = ["10.0.2.0/24"]
}