{"id":23799858,"url":"https://github.com/martishin/aws-e2e-terraform-example","last_synced_at":"2026-04-11T12:35:18.596Z","repository":{"id":248779851,"uuid":"829590612","full_name":"martishin/aws-e2e-terraform-example","owner":"martishin","description":"Example of using Terraform to provision AWS infrastructure for a website: Route 53, ELB, EC2, S3","archived":false,"fork":false,"pushed_at":"2024-07-17T13:38:23.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T15:50:01.810Z","etag":null,"topics":["aws","docker","ec2","elb","networking","python","route53","s3","terraform"],"latest_commit_sha":null,"homepage":"https://www.martishin.com/posts/project-aws-terraform-example","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/martishin.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T18:36:25.000Z","updated_at":"2024-07-18T23:33:59.000Z","dependencies_parsed_at":"2025-01-01T21:28:14.454Z","dependency_job_id":"4c870159-47d9-4f3e-b43a-ce39d5684db5","html_url":"https://github.com/martishin/aws-e2e-terraform-example","commit_stats":null,"previous_names":["martishin/terraform-aws","martishin/aws-terraform-dns-elb-ec2-s3-example","martishin/aws-e2e-terraform-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martishin/aws-e2e-terraform-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martishin%2Faws-e2e-terraform-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martishin%2Faws-e2e-terraform-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martishin%2Faws-e2e-terraform-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martishin%2Faws-e2e-terraform-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martishin","download_url":"https://codeload.github.com/martishin/aws-e2e-terraform-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martishin%2Faws-e2e-terraform-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263577239,"owners_count":23483130,"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","docker","ec2","elb","networking","python","route53","s3","terraform"],"created_at":"2025-01-01T21:27:49.737Z","updated_at":"2026-04-11T12:35:13.564Z","avatar_url":"https://github.com/martishin.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS + Terraform End-to-End Project\nExample of using Terraform to provision AWS infrastructure for a simple website:\n* Network configuration \n* Route 53 DNS configuration\n* Elastic Load Balancer\n* Multiple EC2 instances\n* S3 storage\n\n## Configuration Files\nAll Terraform configuration files are located in the `infrastructure` folder:\n* main.tf: Contains the provider configuration\n* variables.tf: Defines the input variables\n* outputs.tf: Defines the output variables\n* network.tf: Contains network-related resources like VPC, subnets, and route tables\n* instances.tf: Contains the EC2 instance configurations\n* load_balancer.tf: Configures the Elastic Load Balancer and target groups\n* s3.tf: Configures the S3 bucket and policies\n* dns.tf: Configures Route 53 DNS settings\n\n## Setup\n* Navigate to the `infrastructure` directory\n```\ncd infrastructure\n```\n* Create a `terraform.tfvars` file to provide your AWS credentials:\n```\necho 'aws_access_key = \"{YOUR_ACCESS_KEY}\"' \u003e\u003e terraform.tfvars\necho 'aws_secret_key = \"{YOUR_SECRET_KEY}\"' \u003e\u003e terraform.tfvars\n```\nReplace {YOUR_ACCESS_KEY} and {YOUR_SECRET_KEY} with your actual AWS access key and secret key\n\n## Usage\n* Initialize Terraform:\n```\nterraform init\n```\n* Apply the Terraform configuration to provision the infrastructure:\n```\nterraform apply\n```\n* Once the process is finished, the address of the load balancer will be shown in the output under `load_balancer_dns`.\n* After you are done, de-provision the infrastructure:\n```\nterraform destroy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartishin%2Faws-e2e-terraform-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartishin%2Faws-e2e-terraform-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartishin%2Faws-e2e-terraform-example/lists"}