{"id":15950225,"url":"https://github.com/omerap12/terraform-simple-http-server","last_synced_at":"2025-08-03T18:34:38.794Z","repository":{"id":198236217,"uuid":"697166946","full_name":"omerap12/Terraform-Simple-http-server","owner":"omerap12","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-04T13:51:40.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T18:30:06.287Z","etag":null,"topics":["aws","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omerap12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-27T07:32:25.000Z","updated_at":"2024-03-30T16:01:29.000Z","dependencies_parsed_at":"2023-10-05T00:30:13.358Z","dependency_job_id":null,"html_url":"https://github.com/omerap12/Terraform-Simple-http-server","commit_stats":null,"previous_names":["omerap12/terraform-simple-http-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omerap12%2FTerraform-Simple-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omerap12%2FTerraform-Simple-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omerap12%2FTerraform-Simple-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omerap12%2FTerraform-Simple-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omerap12","download_url":"https://codeload.github.com/omerap12/Terraform-Simple-http-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135910,"owners_count":20889558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","terraform"],"created_at":"2024-10-07T12:58:47.081Z","updated_at":"2025-04-04T07:22:05.691Z","avatar_url":"https://github.com/omerap12.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Infrastructure with Terraform\n\nThis Terraform configuration sets up an AWS infrastructure including a Virtual Private Cloud (VPC), a public subnet, an internet gateway, a custom route table, security groups, a network interface, and an EC2 instance.  \nThis code will deploy a simple http server running on ec2 instance.\n\n\n## Prerequisites\nBefore you begin, make sure you have the following prerequisites:\n\nTerraform installed on your local machine.\nAWS credentials configured with appropriate permissions.\nConfiguration Files\n## Terraform Files\n\n* main.tf: Contains the main Terraform configuration for creating AWS resources.\n* variables.tf: Defines input variables used in the configuration.\n* userdata.sh: User data script executed on EC2 instance launch.\n\n## Terraform Resources\n* AWS VPC (aws_vpc.main)\nCIDR Block: 10.0.0.0/16. \nInstance Tenancy: default.  \n* AWS Subnet (aws_subnet.main-subnet)\nVPC Association: Associated with aws_vpc.main.\nCIDR Block: 10.0.1.0/24. \nAvailability Zone: us-east-1a\n* AWS Internet Gateway (aws_internet_gateway.main-gateway)\n* VPC Association: Attached to aws_vpc.main.\n* AWS Route Table (aws_route_table.main-route-table)\n* VPC Association: Associated with aws_vpc.main.\n* AWS Route (aws_route.main-route)\nDefault Route: Allows traffic to 0.0.0.0/0 via the Internet Gateway.\n* AWS Route Table Association (aws_route_table_association.subnet-association)\nAssociates the subnet with the custom route table.\n* AWS Security Group (aws_security_group.instance-sg)\n* VPC Association: Associated with aws_vpc.main.\n* Ingress Rules: Allows HTTP traffic (port 80) from anywhere and ICMP traffic (ping) from within the VPC.\n* Egress Rules: Allows all outbound traffic.\n* AWS Network Interface (aws_network_interface.main-network-interface)\n* Subnet Association: Associated with aws_subnet.main-subnet.\n* Security Groups: Assigned aws_security_group.instance-sg.\n* AWS Elastic IP (aws_eip.main-eip)\n* VPC Association: Associated with a network interface.\nAssociates with a private IP address of the network interface.\n* AWS EC2 Instance (aws_instance.instance)\nAMI: Default is \"ami-053b0d53c279acc90\".  \nInstance Type: Default is \"t2.micro\".  \nAvailability Zone: us-east-1a.  \nNetwork Interface: Attached to aws_network_interface.main-network-interface.  \nUser Data: Executes the userdata.sh script.  \nTags: Named \"webserver\".\n## Usage\nClone this repository to your local machine.\n\nConfigure your AWS credentials using aws configure.\n\nRun terraform init to initialize the working directory.\n\nRun terraform apply to create the AWS infrastructure.\n\nAfter the infrastructure is created, you can SSH into the EC2 instance using the Elastic IP address.\n\nTo destroy the infrastructure, run terraform destroy.\n\n### Variables\n* ami: The AMI for the EC2 instance. Default is \"ami-053b0d53c279acc90\".\n* instances_number: Number of instances to launch. Default is 1.\n* instance_type: EC2 instance type to launch. Default is \"t2.micro\".\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomerap12%2Fterraform-simple-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomerap12%2Fterraform-simple-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomerap12%2Fterraform-simple-http-server/lists"}