{"id":26160836,"url":"https://github.com/joeycloudio/terraform-s3-setup","last_synced_at":"2026-04-29T21:35:23.165Z","repository":{"id":279006445,"uuid":"937384489","full_name":"joeycloudio/terraform-s3-setup","owner":"joeycloudio","description":"Automating S3 Bucket Deployment with Terraform | Infrastructure as Code (IaC) for scalable, repeatable AWS resource provisioning | Used Terraform to create and configure S3 buckets, demonstrating automation best practices and Terraform commands | Includes Terraform configurations, AWS CLI integration, and object storage management.","archived":false,"fork":false,"pushed_at":"2025-03-11T02:37:47.000Z","size":521,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T03:26:09.880Z","etag":null,"topics":["aws","aws-cli","aws-s3","cloud-automation","cloud-engineering","iac","infrastructure-as-code","terraform"],"latest_commit_sha":null,"homepage":"https://www.linkedin.com/feed/update/urn:li:activity:7299317851033583616/","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/joeycloudio.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-22T23:10:02.000Z","updated_at":"2025-03-11T02:37:50.000Z","dependencies_parsed_at":"2025-02-23T06:33:24.126Z","dependency_job_id":null,"html_url":"https://github.com/joeycloudio/terraform-s3-setup","commit_stats":null,"previous_names":["joeycloudio/terraform-s3-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joeycloudio/terraform-s3-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeycloudio%2Fterraform-s3-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeycloudio%2Fterraform-s3-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeycloudio%2Fterraform-s3-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeycloudio%2Fterraform-s3-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeycloudio","download_url":"https://codeload.github.com/joeycloudio/terraform-s3-setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeycloudio%2Fterraform-s3-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["aws","aws-cli","aws-s3","cloud-automation","cloud-engineering","iac","infrastructure-as-code","terraform"],"created_at":"2025-03-11T12:21:21.683Z","updated_at":"2026-04-29T21:35:23.161Z","avatar_url":"https://github.com/joeycloudio.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create an S3 Bucket with Terraform  \nThis repo contains a small Terraform configuration that provisions a single, private Amazon S3 bucket with public access blocked.  \n\nIt’s a minimal example of using Infrastructure as Code (IaC) to create secure AWS storage in a repeatable way.\n\n![terraform-s3-buckets.png](terraform-s3-buckets.png)\n\n## What This Project Does\n\n* Uses the AWS provider in Terraform\n\n* Creates one S3 bucket\n\n* Applies an `aws_s3_bucket_public_access_block` resource so the bucket:\n    * Blocks public ACLs\n    * Ignores any public ACLs\n    * Blocks public bucket policies\n    * Restricts public buckets\n\n* Outputs the bucket’s domain name after `apply`\n\nThere are no uploads, IAM roles, or advanced policies here on purpose. This is a focused, entry-level infrastructure exercise.\n\n## Why This Matters\n\nManually creating buckets in the console is fine for one-offs, but it:\n\n- Is easy to misconfigure (especially security settings)\n\n- Doesn’t scale across accounts/environments\n\n- Is hard to review or reproduce\n\nWith Terraform, you:\n\n- Capture the bucket config in code\n\n- Enforce secure defaults (no public access)\n\n- Can recreate the same bucket in another region or account with minimal changes\n\n## Prerequisites\n\nTo run this yourself, you’ll need:\n\n- An AWS account\n\n- AWS credentials configured (via `aws configure` or environment variables)\n\n- Terraform installed (v1.x)\n\nYour IAM user/role should have permissions for:\n\n- `s3:CreateBucket`, `s3:PutBucket`, `s3:GetBucket`, `s3:DeleteBucket`\n\n- Any required account-level S3 actions depending on your org policies\n\n## How to Use  \n\n   By default this uses `us-west-1`. You can change the region in `main.tf`.\n  \n1. Clone the repo and change directory  \n```bash\n   git clone https://github.com/joeycloudio/terraform-s3-setup.git\n\n   cd terraform-s3-setup\n```\n2.  Set your AWS region (optional)\n  \n    In `main.tf`, update the region value in the provider \"aws\" block if you want a different region.\n    \n3.  Initialize Terraform\n```bash\nterraform init\n```\n\n4.  Preview the changes\n```bash\nterraform plan\n```\n   Update the `bucket` name in `aws_s3_bucket.my_bucket` to a globally unique value before running `terraform apply`.\n\n5.  Apply the configuration\n```bash    \nterraform apply\n```\n   Type yes when prompted.  \n   \n   After apply, Terraform will output the bucket_domain_name.\n    \n6.  Verify in the AWS console\n    \n    *   Go to the S3 console\n        \n    *   Confirm the bucket exists with the name in `main.tf`\n        \n    *   Check the “Block public access” settings are enabled\n        \n9.  Destroy when you’re done\n```bash    \nterraform destroy\n```\nThis cleans up the bucket so you don’t leave unused resources lying around.\n\n ## Useful Links\n \n **Project Documentation (PDF):** [View on LinkedIn](https://www.linkedin.com/feed/update/urn:li:activity:7299317851033583616/)  \n **GitHub Repository:** [View Code](https://github.com/joeycloudio/terraform-s3-setup/blob/master/main.tf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeycloudio%2Fterraform-s3-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeycloudio%2Fterraform-s3-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeycloudio%2Fterraform-s3-setup/lists"}