Create a Security Group in AWS

In the "Code Editor" tab, open the security-group.tf file.

Your task: Add a resource to create a security group named web-sg in the VPC defined in vpc.tf. Allow inbound HTTP traffic (port 80) from any IP address.

GitOps Repository

  • 📁 /root/learn-terraform-aws-security-group
    • 📄 provider.tf
    • 📄 vpc.tf
    • 📄 security-group.tf

Code Editor

Terminal