{"id":26346913,"url":"https://github.com/muthuri-dev/everything-iac-aws-restart","last_synced_at":"2026-02-08T17:02:55.572Z","repository":{"id":282405332,"uuid":"948347209","full_name":"muthuri-dev/Everything-IaC-aws-restart","owner":"muthuri-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-19T02:36:18.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T15:57:54.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/muthuri-dev.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,"zenodo":null}},"created_at":"2025-03-14T07:07:23.000Z","updated_at":"2025-03-19T02:36:22.000Z","dependencies_parsed_at":"2025-03-18T21:15:33.998Z","dependency_job_id":null,"html_url":"https://github.com/muthuri-dev/Everything-IaC-aws-restart","commit_stats":null,"previous_names":["muthuri-dev/everything-iac-aws-restart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muthuri-dev/Everything-IaC-aws-restart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2FEverything-IaC-aws-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2FEverything-IaC-aws-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2FEverything-IaC-aws-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2FEverything-IaC-aws-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muthuri-dev","download_url":"https://codeload.github.com/muthuri-dev/Everything-IaC-aws-restart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muthuri-dev%2FEverything-IaC-aws-restart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29237104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"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":[],"created_at":"2025-03-16T07:14:51.367Z","updated_at":"2026-02-08T17:02:55.567Z","avatar_url":"https://github.com/muthuri-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Everything-IaC-aws-restart\n\n# Terraform with AWS\n\n\u003e Note: When it says \"install\" a tool, just proceed to install it by your preferred method. This documentation does not provide detailed installation instructions.\n\n---\n\n## Prerequisites\n\n1. **Terraform**: Install Terraform.\n2. **AWS CLI**: Install AWS CLI.\n3. **AWS Account**: Ensure you have an AWS account.\n4. **IAM User**: Create an IAM user with the required permissions or use an appropriate IAM role.\n5. **Access Credentials**: Obtain AWS access key and secret access key (if using an IAM user).\n\n---\n\n## Step-by-Step Setup\n\n### 1. Install Terraform\n\nSimply install Terraform. Afterwards, verify by running:\n\n```bash\nterraform -help\n```\n\n### 2. Install AWS CLI\n\nInstall the AWS CLI. Verify by running:\n\n```bash\naws --version\n```\n\n### 3. Create \u0026 Configure an IAM User\n\n- Create a new IAM user with the necessary permissions (e.g., AdministratorAccess, or more granular permissions).\n- Note the generated Access Key ID and Secret Access Key.\n\n### 4. Configure AWS CLI With IAM Credentials\n\n- Configure the AWS CLI by running:\n\n```bash\naws configure\n```\n\n- Provide your AWS credentials (Access Key, Secret Key) and default region.\n\n---\n\n## Suggested Project Structure\n\nBelow is an example directory layout for organizing Terraform files on the repository:\n\n```\n.\n├── README.md\n├── s3\n│   ├── main.tf\n│   └── variables.tf\n├── ec2\n│   ├── main.tf\n│   └── variables.tf\n├── vpc\n│   ├── main.tf\n│   └── variables.tf\n|── Aurora RDS\n|   ├── main.tf\n|   └── variables.tf\n├── Practice\n│   ├── main.tf\n│   └── variables.tf\n└── ...\n```\n\n- **provider.tf**: Holds the provider configuration for AWS.\n- **variables.tf**: Declares global variables used across your project.\n- **s3 / ec2 / vpc / ...**: Each folder contains Terraform code and variables for that service.\n\n---\n\n## Provider Configuration\n\nA minimal provider configuration might look like this:\n\n```hcl\n# provider.tf\nprovider \"aws\" {\n  region = var.aws_region\n}\n```\n\nWhere `var.aws_region` is defined in your `variables.tf` file.\n\n---\n\n## Example S3 Configuration\n\nHere’s a brief example to deploy an S3 bucket. You can replicate similar structures for other AWS services.\n\n```hcl\n# s3/main.tf\nresource \"aws_s3_bucket\" \"example_bucket\" {\n  bucket = var.bucket_name\n  acl    = \"private\"\n}\n```\n\n```hcl\n# s3/variables.tf\nvariable \"bucket_name\" {\n  type        = string\n  description = \"Name for the S3 bucket.\"\n}\n```\n\n---\n\n## Using the Terraform Code\n\n1. **Initialize Terraform**\n   ```bash\n   terraform init\n   ```\n2. **Review Changes**\n   ```bash\n   terraform plan\n   ```\n3. **Apply Changes**\n   ```bash\n   terraform apply\n   ```\n4. **Destroy (Optional)**\n   ```bash\n   terraform destroy\n   ```\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuthuri-dev%2Feverything-iac-aws-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuthuri-dev%2Feverything-iac-aws-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuthuri-dev%2Feverything-iac-aws-restart/lists"}