{"id":27944601,"url":"https://github.com/gmccormick8/simple-gcp-static-website","last_synced_at":"2025-05-07T12:53:27.534Z","repository":{"id":290991974,"uuid":"975680943","full_name":"gmccormick8/simple-gcp-static-website","owner":"gmccormick8","description":"Terraform implementation of Google's \"Host a Static Website\" Guide, minus HTTPS for simplicity","archived":false,"fork":false,"pushed_at":"2025-05-01T18:34:03.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T19:33:27.496Z","etag":null,"topics":["cloud-load-balancer","gcp","google-cloud-platform","google-cloud-storage","guide","terraform"],"latest_commit_sha":null,"homepage":"https://cloud.google.com/storage/docs/hosting-static-website#lb-host","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmccormick8.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-04-30T18:05:02.000Z","updated_at":"2025-05-01T19:14:57.000Z","dependencies_parsed_at":"2025-05-01T19:33:41.163Z","dependency_job_id":"5445bdfa-5a86-4370-ba14-16bb7fda9c9a","html_url":"https://github.com/gmccormick8/simple-gcp-static-website","commit_stats":null,"previous_names":["gmccormick8/simple-gcp-static-website"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmccormick8%2Fsimple-gcp-static-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmccormick8%2Fsimple-gcp-static-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmccormick8%2Fsimple-gcp-static-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmccormick8%2Fsimple-gcp-static-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmccormick8","download_url":"https://codeload.github.com/gmccormick8/simple-gcp-static-website/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252882816,"owners_count":21819153,"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","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":["cloud-load-balancer","gcp","google-cloud-platform","google-cloud-storage","guide","terraform"],"created_at":"2025-05-07T12:53:25.209Z","updated_at":"2025-05-07T12:53:27.528Z","avatar_url":"https://github.com/gmccormick8.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- textlint-disable --\u003e\n\n# GCP Static Website Terraform Project\n\n[![Run Super Linter](https://github.com/gmccormick8/simple-gcp-static-website/actions/workflows/super-linter.yml/badge.svg?branch=main)](https://github.com/gmccormick8/simple-gcp-static-website/actions/workflows/super-linter.yml)\n\nThis project provides Infrastructure as Code (IaC) for deploying a static website on Google Cloud Platform using Cloud Storage and Cloud Load Balancing.\nThe implementation is based on Google's [Host a Static Website](https://cloud.google.com/storage/docs/hosting-static-website) guide.\nThis project is designed to run from the Google Cloud Shell using a user-friendly startup script. Simply clone this repository, run the script (following the prompts), and let Terraform do the rest!\n\n\u003c!-- textlint-enable --\u003e\n\n## Architecture\n\nThe project creates the following resources:\n\n- Google Cloud Storage bucket for hosting static content\n- Global HTTP External Application Load Balancer\n- Static IP address\n\n## Prerequisites\n\n- [Google Cloud Platform Account](https://console.cloud.google.com)\n- [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) - Preinstalled in Google Cloud Shell\n- [Terraform](https://www.terraform.io/downloads) (version ~\u003e 1.11.0) - Terraform is preinstalled in Google Cloud Shell\n- Active Google Cloud Project with billing enabled\n- Required APIs enabled:\n  - compute.googleapis.com\n  - storage-api.googleapis.com\n\n## Quick Start (Google Cloud Shell)\n\n1. Clone this repository:\n\u003c!-- textlint-disable --\u003e\n\n```bash\ngit clone https://github.com/gmccormick8/simple-gcp-static-website.git \u0026\u0026 cd simple-gcp-static-website\n```\n\n\u003c!-- textlint-enable --\u003e\n\n2. Run setup script to initialize the project (enter \"y\" when prompted):\n\n```bash\nbash setup.sh\n```\n\nThe setup script will:\n\n- Verify and update Terraform if needed\n- Enable required Google Cloud APIs\n- Initialize Terraform\n- Create and apply the Terraform configuration\n\u003c!-- textlint-disable --\u003e\n- Display a link to the newly created website at the end of the output. Please note that it may take several minutes for the website to go live.\n\u003c!-- textlint-enable --\u003e\n\n## Manual Deployment\n\nIf you prefer to deploy manually:\n\n1. Set your Google Cloud project ID:\n\n```bash\necho 'project_id = \"YOUR_PROJECT_ID\"' \u003e terraform.tfvars\n```\n\n2. Initialize Terraform:\n\n```bash\nterraform init\n```\n\n3. Review the deployment plan:\n\n```bash\nterraform plan\n```\n\n4. Apply the configuration (enter \"yes\" when prompted):\n\n```bash\nterraform apply\n```\n\n## Customization\n\n- The default index page and 404 error page can be modified in `main.tf`\n- Storage bucket configuration can be adjusted in `modules/storage/main.tf`\n- Load balancer settings can be modified in `modules/load-balancer/main.tf`\n\n## Cleanup\n\nTo remove all created resources (enter \"yes\" when prompted):\n\n```bash\nterraform destroy\n```\n\n## Security Notes\n\nThis implementation:\n\n- Makes the storage bucket public\n- Uses HTTP (not HTTPS)\n- Is intended for development/testing purposes\n- Is not suitable for production use\n\n## Contributing\n\nContributions are welcome! Please read our contributing guidelines before submitting pull requests.\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmccormick8%2Fsimple-gcp-static-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmccormick8%2Fsimple-gcp-static-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmccormick8%2Fsimple-gcp-static-website/lists"}