Skip to content

bryan-rhm/terraform-aws-security-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS Security group module

Requirements

Name Version
terraform >= 1.0.3
aws >= 3.43.0

Providers

Name Version
aws >= 3.43.0

Resources

Name Type
aws_security_group.this resource
aws_security_group_rule.rule resource

Inputs

Name Description Type Default Required
description Description for the security group string "Created by terraform" no
name Name for the security group string n/a yes
rules Ingress/Egress rules to apply to the security group
list(object({
type = string
from_port = number
to_port = number
protocol = string
self = optional(bool)
description = optional(string)
cidr_blocks = optional(list(string))
prefix_list_ids = optional(list(string))
source_security_group_id = optional(string)
}))
[] no
tags Map of tags to assign to the resource. map(any) {} no
vpc_id Id of the vpc where the security group will be created string n/a yes

Outputs

Name Description
output Security group attributes