{"id":18412907,"url":"https://github.com/rproenza86/aws-infrastructure-code-address_book","last_synced_at":"2026-04-13T08:32:03.766Z","repository":{"id":96672261,"uuid":"155864594","full_name":"rproenza86/aws-infrastructure-code-address_book","owner":"rproenza86","description":"Terraform infrastructure code for Address Book, a php Web App. Create Virtual Private Cloud, a public and private subnets, an Internet Gateway, a Route Table and add a route to the Internet, a security group for the web server and for the db, deploy web server and a MySQL RDS instance.","archived":false,"fork":false,"pushed_at":"2018-11-02T18:10:52.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T08:32:32.885Z","etag":null,"topics":["aws","aws-ec2","aws-internet-gateway","aws-rds-mysql","aws-route-table","aws-security-group","aws-subnet","aws-vpc","lamp","private-subnets","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/rproenza86.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":"2018-11-02T12:43:15.000Z","updated_at":"2019-06-28T02:29:10.000Z","dependencies_parsed_at":"2023-04-11T15:46:34.947Z","dependency_job_id":null,"html_url":"https://github.com/rproenza86/aws-infrastructure-code-address_book","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rproenza86/aws-infrastructure-code-address_book","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Faws-infrastructure-code-address_book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Faws-infrastructure-code-address_book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Faws-infrastructure-code-address_book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Faws-infrastructure-code-address_book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rproenza86","download_url":"https://codeload.github.com/rproenza86/aws-infrastructure-code-address_book/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rproenza86%2Faws-infrastructure-code-address_book/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","aws-ec2","aws-internet-gateway","aws-rds-mysql","aws-route-table","aws-security-group","aws-subnet","aws-vpc","lamp","private-subnets","terraform"],"created_at":"2024-11-06T03:44:05.881Z","updated_at":"2026-04-13T08:32:03.745Z","avatar_url":"https://github.com/rproenza86.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Address Book Web App infrastructure code\n\u003e LAMP APP using Amazon Virtual Private Cloud (VPC)\n\nTerraform scripts to build the AWS environment where to deploy and release \"Address Book\", a LAMP application.\n\n```\nTested using:\n\nTerraform v0.11.10\n+ provider.aws v1.42.0\n```\n\n### Infrastructure details\n\n* Create Virtual Private Cloud(VPC)\n* Create a public and private subnets\n* Create an Internet Gateway\n* Create a Route Table and add a route to the Internet\n* Create a security group for the web server to only allow HTTP inbound traffic from Internet\n* Create a security group for the MySQL RDS instance server to only allow MySQL inbound traffic from the web server subnet\n* Deploy web server and a MySQL RDS instance\n* Configure application to connect to the MySQL RDS instance\n\n## How to use\n\n### Pre-requirement: Set AWS environment variables\n```\n$ export TF_VAR_access_key=\u003cyour_key\u003e\n\n$ export TF_VAR_secret_key=\u003cyour-secret\u003e\n\n$ export TF_VAR_region=\u003cyour_region\u003e\n```\n\n### Initialize a working directory\n\n`$ cd lamp_intrastructure/`\n\n`$ terraform init`\n\n### Create an execution plan\n\n`$ terraform plan`\n\n### Apply the changes required to reach the desired state of the configuration\n\n`$ terraform apply`\n\n### Delete infrastructure\n\u003e Before to run command delete manually the RDS mysql instance(you will be prompt with securities questions)\n\n`$ terraform destroy`\n\n## How to test?\n\nWhen applied the configuration `terraform` will show us the next output:\n\n```\nOutputs:\n\ndb_endpoint = terraform-20181102155541101800000001.cfi372mmcqsi.us-east-1.rds.amazonaws.com:3306\nweb_server_public_ip = 18.209.111.9\n```\n\nUse the `db_endpoint` and `web_server_public_ip` for the next steps.\n\n### Open the Address Book Web App page\n\nFind on EC2 the \"IPv4 Public IP\" address(`web_server_public_ip`) of the \"Web Server\" instance and open it in a web browser.\n\n### Login in the web app and try some CRUD operations\n\nFind the DB endpoint( `db_endpoint`) on the \"Connect\" section of the RDS mysql created instance.\n\nUsing the DB endpoint and credentials(can be found on the 9-rdsDbResources.tf file) login in the app.\n\nCreate, edit or remove contacts to test the web app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frproenza86%2Faws-infrastructure-code-address_book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frproenza86%2Faws-infrastructure-code-address_book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frproenza86%2Faws-infrastructure-code-address_book/lists"}