{"id":15292386,"url":"https://github.com/rufilboss/devops-trial-task","last_synced_at":"2026-02-11T00:31:11.549Z","repository":{"id":257667257,"uuid":"858975780","full_name":"rufilboss/DevOps-Trial-Task","owner":"rufilboss","description":"Terraform Configuration for RNS GCP Cloud Run Service with Cloud SQL and Load Balancer","archived":false,"fork":false,"pushed_at":"2024-11-13T19:31:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T01:38:44.342Z","etag":null,"topics":["devops","gcp","iac-terraform","serverless","terraform"],"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/rufilboss.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-09-17T21:23:07.000Z","updated_at":"2024-11-13T19:31:04.000Z","dependencies_parsed_at":"2024-09-18T02:15:49.929Z","dependency_job_id":"9dd42b07-de67-408a-b6a7-bae3624a6912","html_url":"https://github.com/rufilboss/DevOps-Trial-Task","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"891ed91212262292d46698bc6d3f4f111cbb52ae"},"previous_names":["rufilboss/devops-trial-task"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rufilboss/DevOps-Trial-Task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rufilboss%2FDevOps-Trial-Task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rufilboss%2FDevOps-Trial-Task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rufilboss%2FDevOps-Trial-Task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rufilboss%2FDevOps-Trial-Task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rufilboss","download_url":"https://codeload.github.com/rufilboss/DevOps-Trial-Task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rufilboss%2FDevOps-Trial-Task/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271755007,"owners_count":24815330,"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-08-23T02:00:09.327Z","response_time":69,"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":["devops","gcp","iac-terraform","serverless","terraform"],"created_at":"2024-09-30T16:17:40.758Z","updated_at":"2026-02-11T00:31:11.514Z","avatar_url":"https://github.com/rufilboss.png","language":"HCL","readme":"# Terraform Configuration for RNS GCP Cloud Run Service with Cloud SQL and Load Balancer\n\n## Overview\n\nThis Terraform configuration uses modules to deploy resources for **RNS**:\n\n- **Network Module**: Sets up a VPC network and subnet.\n- **Cloud SQL Module**: Creates a Cloud SQL PostgreSQL database instance.\n- **Cloud Run Module**: Deploys a Cloud Run service connected to the Cloud SQL database.\n- **Load Balancer Module**: Configures an external HTTP Load Balancer to route traffic to the Cloud Run service.\n\n## Prerequisites\n\n- **Terraform** installed (version \u003e= 0.12)\n- A **Google Cloud Platform** (GCP) project with billing enabled\n- **Google Cloud SDK** installed and authenticated\n- Necessary permissions to create resources in the GCP project\n\n## Usage\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/rufilboss/DevOps-Trial-Task\ncd DevOps-Trial-Task\n```\n\n### Initialize Terraform\n\nInitialize the Terraform working directory to download the necessary providers.\n\n```bash\nterraform init\n```\n\n### Configure Variables\n\nCreate a terraform.tfvars file in the root directory to provide values for the variables defined in variables.tf.\n\n```bash\nproject_id       = \"my-gcp-project-id\"\nregion           = \"us-central1\"\ndb_password      = \"my-example-db-password\"\nimage            = \"gcr.io/your-gcp-project/your-container-image:tag\"\nservice_name     = \"rns-cloud-run-service\"\ndb_instance_name = \"rns-db-instance\"\ncidr_block       = \"10.0.0.0/16\"\n```\n\n### Plan and Apply the Configuration\n\nIt’s a good practice to run terraform plan to see what resources will be created.\n\n```bash\nterraform plan\n```\n\nReview the output to ensure that the resources to be created match your expectations.\n\n#### Apply\n\nApply the Terraform configuration to create the resources.\n\n```bash\nterraform apply\n```\n\nWhen prompted, type yes to confirm the creation of resources.\n\n#### Outputs\n\nAfter successful deployment, Terraform will output:\n\n- cloud_run_url: The URL of the deployed Cloud Run service.\n- load_balancer_ip: The external IP address of the load balancer.\n\nYou can access the application using the load_balancer_ip.\n\n### Cleanup\n\nTo remove all resources created by this configuration, run:\n\n```bash\nterraform destroy\n```\n\nConfirm the destruction by typing yes when prompted.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frufilboss%2Fdevops-trial-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frufilboss%2Fdevops-trial-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frufilboss%2Fdevops-trial-task/lists"}