{"id":24014837,"url":"https://github.com/janisadhi/terraform_provisioning","last_synced_at":"2025-09-05T16:20:22.933Z","repository":{"id":269929527,"uuid":"908884837","full_name":"janisadhi/Terraform_Provisioning","owner":"janisadhi","description":"Terraform Infrastructure as a code to create a resources at AWS","archived":false,"fork":false,"pushed_at":"2024-12-27T07:58:13.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T04:45:38.768Z","etag":null,"topics":["infrastructure-as-code","terraform"],"latest_commit_sha":null,"homepage":null,"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/janisadhi.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-12-27T07:50:33.000Z","updated_at":"2025-01-15T10:31:20.000Z","dependencies_parsed_at":"2024-12-27T08:40:33.121Z","dependency_job_id":null,"html_url":"https://github.com/janisadhi/Terraform_Provisioning","commit_stats":null,"previous_names":["janisadhi/terraform_provisioning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janisadhi/Terraform_Provisioning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janisadhi%2FTerraform_Provisioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janisadhi%2FTerraform_Provisioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janisadhi%2FTerraform_Provisioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janisadhi%2FTerraform_Provisioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janisadhi","download_url":"https://codeload.github.com/janisadhi/Terraform_Provisioning/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janisadhi%2FTerraform_Provisioning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782460,"owners_count":25167135,"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-09-05T02:00:09.113Z","response_time":402,"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":["infrastructure-as-code","terraform"],"created_at":"2025-01-08T07:37:39.033Z","updated_at":"2025-09-05T16:20:22.910Z","avatar_url":"https://github.com/janisadhi.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Resources Setup\n\nThis repository contains Terraform code to provision an EC2 instance and a security group on AWS. The security group allows inbound traffic on ports 22 (SSH), 80 (HTTP), and 443 (HTTPS). The EC2 instance is configured to use a specific Amazon Machine Image (AMI) and is set to the `t2.micro` instance type.\n\n\n\n---\n\n## Requirements\n\n- Terraform version \u003e= 1.4.0\n- AWS provider version \u003e= 5.0\n\nMake sure to install Terraform and AWS CLI (if not already done) to be able to use the configurations.\n\n## Setup\n\n1. **Clone this repository:**\n   ```\n   git clone https://github.com/janisadhi/Terraform_Provisioning\n   cd Terraform_Provisioning\n   ```\n\n2. **Configure AWS CLI:**\n   If you haven't already configured your AWS credentials, run the following command:\n   ```\n   aws configure\n   ```\n   Follow the prompts to provide your AWS Access Key ID, Secret Access Key, and region.\n\n3. **Initialize Terraform:**\n   Initialize your Terraform environment by running:\n   ```\n   terraform init\n   ```\n\n4. **Apply the Configuration:**\n   Once initialization is complete, apply the Terraform configuration to create the resources:\n   ```\n   terraform apply\n   ```\n   Terraform will ask for confirmation before proceeding. Type `yes` to proceed.\n\n5. **Resources Created:**\n   - **EC2 Instance:** A `t2.micro` EC2 instance will be created using the specified AMI (`ami-0453ec754f44f9a4a`).\n   - **Security Group:** A security group with the name `terraform_group` will be created, allowing SSH (port 22), HTTP (port 80), and HTTPS (port 443) traffic.\n\n6. **Verify the Resources:**\n   After applying, you can log into the AWS Console and check the EC2 instance and security group created under the specified region (`us-east-1`).\n\n## Resources\n\n- **AWS EC2 Instance:** `aws_instance.first_instance`\n- **AWS Security Group:** `aws_security_group.demo_security_group`\n\n## Code Explanation\n\n### `terraform` Block:\nThis block specifies the required Terraform provider (`aws`) and its version as well as the required Terraform version.\n\n### Provider Block:\nConfigures the AWS provider with the region set to `us-east-1`.\n\n### EC2 Instance:\n- **AMI:** The EC2 instance uses a specific AMI (`ami-0453ec754f44f9a4a`).\n- **Instance Type:** The instance type is `t2.micro`, which is eligible for the AWS free tier.\n- **Tags:** The instance is tagged with `Name = \"awsLinux\"`.\n\n### Security Group:\n- The security group `terraform_group` is created with inbound rules for:\n  - SSH (port 22)\n  - HTTP (port 80)\n  - HTTPS (port 443)\n\n## Cleanup\n\nTo delete the resources created by this Terraform configuration, run:\n```\nterraform destroy\n```\nTerraform will prompt you for confirmation before deleting the resources.\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanisadhi%2Fterraform_provisioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanisadhi%2Fterraform_provisioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanisadhi%2Fterraform_provisioning/lists"}