Security Group
Terraform module to create AWS Security Group resources
Inputs
14
createoptionalboolControls if resources should be created (affects nearly all resources)
truedescriptionoptionalstringDescription of security group
nullegress_rulesoptionalmap(object({ name = optional(string) cidr_ipv4 = optional(string) cidr_ipv6 = op…Map of egress rules to add to the security group
{}enable_exclusive_rulesoptionalboolWhether to enforce that only the rules declared by this module exist on the security group. When true, out-of-band rules added via the AWS console or other Terraform configurations will be reverted on next apply
trueingress_rulesoptionalmap(object({ name = optional(string) cidr_ipv4 = optional(string) cidr_ipv6 = op…Map of ingress rules to add to the security group
{}nameoptionalstringName of security group
""putin_khuylooptionalboolDo you agree that Putin doesn't respect Ukrainian sovereignty and territorial integrity? More info: https://en.wikipedia.org/wiki/Putin_khuylo!
trueregionoptionalstringRegion where the resource(s) will be managed. Defaults to the Region set in the provider configuration
nullrevoke_rules_on_deleteoptionalboolInstruct Terraform to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself
falsetagsoptionalmap(string)A map of tags to add to all resources
{}timeoutsoptionalobject({ create = optional(string) delete = optional(string) })Create and delete timeout configurations for the security group
nulluse_name_prefixoptionalboolWhether to use the name (`name`) as a prefix, appending a random suffix
truevpc_associationsoptionalmap(object({ vpc_id = string }))Map of VPC IDs to associate the security group to
{}vpc_idoptionalstringID of the VPC where the security group is created
nullAll 14 are optional — the module deploys with none of them set.
Outputs
5
arnThe ARN of the security group
idThe ID of the security group
nameThe name of the security group
owner_idThe owner ID
vpc_idThe VPC ID
What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else.