{"id":42023937,"url":"https://github.com/trivediayush/terraform_iaac","last_synced_at":"2026-01-26T04:03:40.762Z","repository":{"id":287146379,"uuid":"963754962","full_name":"trivediayush/Terraform_IaaC","owner":"trivediayush","description":"Terraform to provision a local Docker container running an NGINX","archived":false,"fork":false,"pushed_at":"2025-04-10T07:21:44.000Z","size":7565,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T00:14:53.614Z","etag":null,"topics":["docker","nginx","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/trivediayush.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":"2025-04-10T06:52:49.000Z","updated_at":"2025-04-19T05:35:38.000Z","dependencies_parsed_at":"2025-04-10T07:54:23.031Z","dependency_job_id":null,"html_url":"https://github.com/trivediayush/Terraform_IaaC","commit_stats":null,"previous_names":["trivediayush/terraform_iaac"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trivediayush/Terraform_IaaC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivediayush%2FTerraform_IaaC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivediayush%2FTerraform_IaaC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivediayush%2FTerraform_IaaC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivediayush%2FTerraform_IaaC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trivediayush","download_url":"https://codeload.github.com/trivediayush/Terraform_IaaC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trivediayush%2FTerraform_IaaC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","nginx","terraform"],"created_at":"2026-01-26T04:03:38.438Z","updated_at":"2026-01-26T04:03:40.750Z","avatar_url":"https://github.com/trivediayush.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"🚀 Terraform Task 3: Provision Docker Container\n===============================================\n\n📌 Objective\n------------\n\nUse Terraform to provision a local Docker container running an NGINX server.\n\n🛠️ Tools Used\n--------------\n\n*   Terraform\n*   Docker\n\n📂 Files Included\n-----------------\n\n*   `main.tf` - Terraform configuration file\n\n📋 Steps to Run\n---------------\n\n1.  Install Docker and Terraform on your machine\n2.  Open a terminal and navigate to the project folder\n3.  Run `terraform init` to initialize Terraform\n4.  Run `terraform plan` to see the execution plan\n5.  Run `terraform apply` and type `yes` to confirm\n6.  Open your browser and go to [http://localhost:8080](http://localhost:8080) to view the NGINX server\n7.  (Optional) Run `terraform destroy` to remove the container\n\n🌐 Port Mapping\n---------------\n\nContainer Port `80` is mapped to Host Port `8080`.\n\n📸 Output\n---------\n\n*   NGINX container pulled and started successfully\n*   Accessible at `http://localhost:8080`\n\n⚠️ Notes\n--------\n\n*   The attribute `docker_image.nginx.latest` is deprecated. Use `docker_image.nginx.name` instead.\n\n🖼️ Screenshots\n\u003cimg src=\"/Screenshots/init.png\"\u003e\n\u003cimg src=\"/Screenshots/plan.png\"\u003e\n\u003cimg src=\"/Screenshots/apply.png\"\u003e\n\u003cimg src=\"/Screenshots/apply_2.png\"\u003e\n\u003cimg src=\"/Screenshots/docker.png\"\u003e\n\u003cimg src=\"/Screenshots/state.png\"\u003e\n\u003cimg src=\"/Screenshots/app.png\"\u003e\n\n👤 Author\n---------\n   # Ayush Trivedi\n---------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivediayush%2Fterraform_iaac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrivediayush%2Fterraform_iaac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivediayush%2Fterraform_iaac/lists"}