{"repo":"terraform-aws-modules/terraform-aws-security-group","free":true,"listed":false,"github":"https://github.com/terraform-aws-modules/terraform-aws-security-group","clone":"git clone https://github.com/terraform-aws-modules/terraform-aws-security-group.git","description":"Terraform module to create AWS Security Group resources 🇺🇦","language":"HCL","stars":592,"topics":["terraform-module","aws-security-group","aws","security-group","aws-vpc"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"AWS Security Group Terraform module Terraform module which creates EC2 security group within VPC on AWS. Usage Root module Preset submodule Each preset submodule under modules/ ships a curated set of ingress rules for a specific service (PostgreSQL, Consul, Cassandra, etc.). Use one when a security group serves a single service. Examples - Complete - Comprehensive example demonstrating the full module surface Notes Referencing the security group itself To allow traffic between members of the security group created by this module, set referenced security group id = \"self\" on the rule. The sentinel is rewritten to the security group's own id at apply time: use name prefix and the create-before-destroy lifecycle The security group resource sets lifecycle { create before destroy = true } so replacements happen without dropping traffic. When use name prefix = false (i.e. you pin a static name ), any change that forces replacement will fail because AWS cannot create a second security group with the same name in the same VPC. Either: - keep use name prefix = true (default), or - change name along with the replacement. Requirements Name Version ---- ------- terraform = 1.5.7 aws = 6.29 Providers Name Version ---- ------- aws = 6.29 Modules No modules. Resources Name Type ---- ---- aws security group.this resource aws vpc security group egress rule.this resource aws vpc security group ingress rule.this resource aws vpc security group rules exclusive.this resource aws vpc security grou","default_branch":null,"files":null,"tree":[],"storefront":"/r/terraform-aws-modules","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/terraform-aws-modules/terraform-aws-security-group/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}