{"id":15800983,"url":"https://github.com/jharley/terraform-intro","last_synced_at":"2025-04-21T08:31:31.741Z","repository":{"id":77008566,"uuid":"188880414","full_name":"jharley/terraform-intro","owner":"jharley","description":"A quick tour of Terraform","archived":false,"fork":false,"pushed_at":"2019-05-31T20:02:39.000Z","size":1487,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T01:21:00.068Z","etag":null,"topics":["aws","cloudflare","introduction-to-terraform","learning-by-doing","terraform"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jharley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-05-27T16:56:49.000Z","updated_at":"2021-06-01T02:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fce6ccad-5308-471e-b54d-f4de166a6ab5","html_url":"https://github.com/jharley/terraform-intro","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"bc04ca731fbbaceeb6c231480fe7e48e4774d59b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharley%2Fterraform-intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharley%2Fterraform-intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharley%2Fterraform-intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharley%2Fterraform-intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jharley","download_url":"https://codeload.github.com/jharley/terraform-intro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223856777,"owners_count":17214938,"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","cloudflare","introduction-to-terraform","learning-by-doing","terraform"],"created_at":"2024-10-05T01:09:05.942Z","updated_at":"2024-11-09T17:04:22.775Z","avatar_url":"https://github.com/jharley.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction to Terraform\n\nThis repository is all of the material that was used for [my talk](https://embed.pheedloop.com/dodto19/site/sessions/?id=KzXXQA) at DevOpsDays Toronto 2019.\n\n## Scenario\n\nYou -- an intrepid infrastructure engineer -- have been tasked with a green field application project on AWS. The team decided that embracing the codification of infrastructure as well as the applicaiton itself was crucial.\n\nTwo crucial problems:\n1. Nobody on the team has codified infrastructure before\n1. Despite having crafted a bang up whiteboard diagram, going from the picture to code feels like looking over the edge into the abyss.\n\n## End Goal\n\nA fairly standard, \"three tier\" deployment with a load balancer, pool of app servers, and a database. The load balancer is fronted by the CloudFlare CDN for DDoS protection and caching. There is also a bastion host setup for management and maintenance.\n\n![Desired End State](images/milestone-4.png)\n\n## Requirements\n\n* Terraform 0.12.0+ installed\n* An AWS account\n  * I've tried my best to use [free tier](https://aws.amazon.com/free/) eligible or low-cost service options\n\nThe [AWS provider](https://www.terraform.io/docs/providers/aws/index.html) is currently configured in such a way that it expects your environment to have appropriate [environment variables](https://www.terraform.io/docs/providers/aws/index.html#environment-variables) configured or have setup the AWS CLI with a default or named profile [configured](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html).\n\nNote: you are creating real resources that could have real costs. Make sure you clean up your work and don't leave anything running!\n\n## Usage\n\nThere is a branch for each \"milestone\" of the progression toward the desired end state -- branching removes the need of shuffling the state files around between directories (as was done during the presentation).\n\nBegin by switching to the \"milestone-1\" branch (`git checkout milestone-1` on the CLI), the README.md file will display a diagram of the intended milestone of that iteration.\n\nYou'll then need to execute `terraform init` to pull in the needed providers. With that done, `terraform plan` will show you the resources that need to be created. `terraform apply` will create the resources. Continue moving through the branches in sequence (or skip a few ¯\\_(ツ)_/¯) and running `init`, `plan` and `apply` to progress through the updates to the infrastructure after taking a look at the diagram for that milestone.\n\nRemember: when you are finished run `terraform destroy` to clean everything up (to avoid unncessary cloud charges).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjharley%2Fterraform-intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjharley%2Fterraform-intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjharley%2Fterraform-intro/lists"}