{"id":26092906,"url":"https://github.com/jazzshu/terraformconfiguration","last_synced_at":"2026-05-07T05:38:50.486Z","repository":{"id":143113524,"uuid":"546264651","full_name":"jazzshu/TerraFormConfiguration","owner":"jazzshu","description":"Basic project to test how to configure Terraform correctly ","archived":false,"fork":false,"pushed_at":"2022-10-05T20:25:59.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T03:27:50.079Z","etag":null,"topics":["aws","docker","terraform","terraform-modules"],"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/jazzshu.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":"2022-10-05T20:08:19.000Z","updated_at":"2022-10-31T19:01:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"45d1b945-d36b-4ea6-8349-3caff58b6e6a","html_url":"https://github.com/jazzshu/TerraFormConfiguration","commit_stats":null,"previous_names":["jazzshu/terraformconfiguration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jazzshu/TerraFormConfiguration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2FTerraFormConfiguration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2FTerraFormConfiguration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2FTerraFormConfiguration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2FTerraFormConfiguration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzshu","download_url":"https://codeload.github.com/jazzshu/TerraFormConfiguration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2FTerraFormConfiguration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278165676,"owners_count":25940956,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","docker","terraform","terraform-modules"],"created_at":"2025-03-09T11:10:24.806Z","updated_at":"2025-10-03T12:58:53.500Z","avatar_url":"https://github.com/jazzshu.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TerraFormConfiguration\n\n## learn-terraform-aws-instance\nTo start an AWS instance using Terraform as the Infrastructure As Code (IAC) tool, you need to create a file with the .tf extension, such as main.tf, \nand define a terraform block which contains the settings, including the required providers Terraform will use to provision your infrastructure.\n\nDefine the resource block to define the components of your infrastructure (such as an EC2 instance).\nYou first need to configure your AWS credentials with:\n```\naws configure\nAWS_ACCESS_KEY_ID = ....\nAWS_SECRET_KEY = .....\n```\nAfter that you need to provide an AMI (Amazon Machine Image), which describes with an ID the type of instance and the region in which your instance will be hosted. \nIn this case the AMI image is of a t2.micro instance (free tier) in the eu-centra-1 region.\n\n#### Initialize\n```\nterraform init\n```\n\n#### Format and validate the configuration file\n```\nterraform fmt\nterraform validate\n```\n\n#### Create the infrastructure\nThis will create your infrastructure on AWS. \n```\nterraform apply\n```\n\n#### Inspect\nThe state of your infrastructure will be maintained in a file called terraform.tfstate.\nN.B. Do not store this file on git.\n```\nterraform show\n```\n\n#### Destroy Infrastructure\n```\nterraform destroy\n```\n\n## learn-terraform-docker-container\nThis command downloads the necessary plugins to allow Terraform to interact with Docker.\n(Docker Desktop needs to be running).\n```\nterraform init\n```\nProvision the NGINX server container with the apply command. \n```\nterraform apply\n```\nNavigate to [localhost:8000](http://localhost:8000 \"localhost\") to visit the nginx server up and running.\nYou can even see the container running on Docker Desktop with its relative image.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fterraformconfiguration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzshu%2Fterraformconfiguration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fterraformconfiguration/lists"}