Skip to content

terraform-in-action/terraform-aws-sg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-sg

This is a module that makes it easy to create security groups in AWS. Built for 0.12

Example Usage:

module "sg" {
    name = var.name
    description = var.description
    vpc_id = var.vpc_id

    ingress_rules = [
        {
            protocol = "tcp"
            port = 80
            cidr_blocks = ["0.0.0.0/0"]
        }
    ]    
}

outputs: the created security group accesible via: module.sg.security_group