github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/ec2/AVD-AWS-0124/Terraform.md (about) 1 2 Add descriptions for all security groups rules 3 4 ```hcl 5 resource "aws_security_group" "good_example" { 6 name = "http" 7 description = "Allow inbound HTTP traffic" 8 9 ingress { 10 description = "HTTP from VPC" 11 from_port = 80 12 to_port = 80 13 protocol = "tcp" 14 cidr_blocks = [aws_vpc.main.cidr_block] 15 } 16 } 17 18 ``` 19 20 #### Remediation Links 21 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group 22 23 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group_rule 24