{"id":18557816,"url":"https://github.com/europ/gcp-simple-web-server","last_synced_at":"2026-04-18T11:01:29.257Z","repository":{"id":68438827,"uuid":"313907887","full_name":"europ/gcp-simple-web-server","owner":"europ","description":"Deploy simple web server provided by nginx in debian 10 to google cloud platform using terraform.","archived":false,"fork":false,"pushed_at":"2020-12-15T14:26:44.000Z","size":604,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T14:11:46.654Z","etag":null,"topics":["debian","debian10","gcp","google-cloud-platform","nginx","terraform","web-server"],"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/europ.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":"2020-11-18T11:03:47.000Z","updated_at":"2024-09-22T21:36:47.000Z","dependencies_parsed_at":"2023-02-21T09:31:15.729Z","dependency_job_id":null,"html_url":"https://github.com/europ/gcp-simple-web-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/europ/gcp-simple-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/europ%2Fgcp-simple-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/europ%2Fgcp-simple-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/europ%2Fgcp-simple-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/europ%2Fgcp-simple-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/europ","download_url":"https://codeload.github.com/europ/gcp-simple-web-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/europ%2Fgcp-simple-web-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["debian","debian10","gcp","google-cloud-platform","nginx","terraform","web-server"],"created_at":"2024-11-06T21:38:03.978Z","updated_at":"2026-04-18T11:01:29.203Z","avatar_url":"https://github.com/europ.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Cloud Platform - Simple Web Server\n\nDeploy simple web server provided by [nginx](https://www.nginx.com/) in [debian 10](https://www.debian.org/index.html) to [google cloud platform](https://cloud.google.com/) using [terraform](https://www.terraform.io/).\n\n##### Deployed Infrastructure\n\n![infrastructure.png](.other/yEd/infrastructure.png)\n\n##### Dependency Graph\n\n![graph.svg](.other/graph.svg)\n\n### Setup\n\n1. prerequisites installation\n\n    1. [Google Cloud Platform](https://console.cloud.google.com/)\n        * create a project\n    1. install [Google Cloud SDK](https://cloud.google.com/sdk/docs/install)\n        * authenticate yourself\n    1. install [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli)\n\n1. environment configuration\n\n    ```bash\n    cat \u003c\u003cEOS \u003e ~/.gcp\n    export GCP_PROJECT_ID=\u003cyour GCP project name\u003e\n    export GCP_ACCOUNT_FILE=~/.config/gcloud/legacy_credentials/\u003cyour@email.com\u003e/adc.json\n    export GCP_ZONE=europe-west3-b\n    export GCP_REGION=europe-west3\n    \n    export TF_VAR_gcp_zone=\"\\$GCP_ZONE\"\n    export TF_VAR_gcp_credentials=\"\\$GCP_ACCOUNT_FILE\"\n    export TF_VAR_gcp_project_id=\"\\$GCP_PROJECT_ID\"\n    export TF_VAR_gcp_region=\"\\$GCP_REGION\"\n    EOS\n    \n    # secure the file\n    chmod 0600 ~/.gcp\n    \n    # load the file\n    source ~/.gcp\n    ```\n\n1. clone this repository and `cd` into it\n\n1. create SSH key pair\n\n    ```bash\n    ssh-keygen -t rsa -b 4096 -C \"terraform\" -f ./ssh/key\n    ```\n\n1. configure terraform variables (set your custom values)\n\n    ```bash\n    # create variable file\n    cp .terraform.tfvars.example terraform.tfvars\n\n    # set custom variable values\n    vi terraform.tfvars\n    ```\n\n1. deployment\n\n    ```bash\n    # download module(s)\n    terraform init\n\n    # deploy\n    terraform apply\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feurop%2Fgcp-simple-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feurop%2Fgcp-simple-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feurop%2Fgcp-simple-web-server/lists"}