renovate-bot / GoogleCloudPlatform-_-terraform-cloud-deployment-gce

Deploy a change to a live stateful service (Java on GCE)

Home Page:https://registry.terraform.io/modules/GoogleCloudPlatform/terraform-cloud-deployment-gce/google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Deployment on GCE

Description

Tagline

Deploy a change to a live stateful service without disrupting downstream customers (Java on GCE)

Detailed

This solution showcases a live feature change on a Java app, deployed to customers using blue-green managed instance group deployments.

The resources/services/activations/deletions that this module will create/trigger are:

  • Google Compute Engine
  • Cloud Load Balancing
  • Service Networking
  • Secret Manager
  • Cloud Storage
  • Cloud CDN
  • Cloud SQL
  • IAM

Inputs

Name Description Type Default Required
bucket_location Bucket location where the uploaded files will be stored. string "US" no
data_init_archive_file_name Name of the archive file that contains the initialization data. string "initialization.tar.gz" no
data_init_bucket_name Name of the Cloud Storage bucket that store the archive file for initialization. string "jss-resources" no
labels A map of key/value label pairs to assign to the cloud resources. map(string)
{
"app": "cloud-deployment-gce-java"
}
no
project_id Google Cloud project ID. string n/a yes
region Google Cloud region where the cloud resource will be created. string "us-central1" no
source_image The source image used to create the instance. string "https://www.googleapis.com/compute/beta/projects/hsa-public/global/images/jss-cd-gce-vm-image" no
zone Google cloud zone where the resources will be created. string "us-central1-a" no

Outputs

Name Description
backend_bucket_name The name of the backend bucket used for Cloud CDN
blue_mig_load_balancer_ip IP address of the blue version instance group
blue_mig_self_link Self link of the blue version instance group
bucket_name Bucket name
green_mig_load_balancer_ip IP address of the green version instance group
green_mig_self_link Self link of the green version instance group
user_mig_load_balancer_ip IP address of the user instance group

Requirements

These sections describe requirements for using this module.

Software

The following dependencies must be available:

Service Account

A service account with the following roles must be used to provision the resources of this module:

  • roles/secretmanager.secretAccessor
  • roles/storage.objectAdmin
  • roles/compute.imageUser
  • roles/cloudsql.editor
  • roles/logging.logWriter

APIs

A project with the following APIs enabled must be used to host the resources of this module:

  • compute.googleapis.com
  • iam.googleapis.com
  • cloudresourcemanager.googleapis.com
  • sqladmin.googleapis.com
  • secretmanager.googleapis.com
  • servicenetworking.googleapis.com

Contributing

Refer to the contribution guidelines for information on contributing to this module.

About

Deploy a change to a live stateful service (Java on GCE)

https://registry.terraform.io/modules/GoogleCloudPlatform/terraform-cloud-deployment-gce/google

License:Apache License 2.0


Languages

Language:Java 31.0%Language:TypeScript 26.3%Language:HCL 18.9%Language:HTML 15.9%Language:Shell 2.4%Language:SCSS 2.3%Language:Go 1.5%Language:Makefile 1.2%Language:Dockerfile 0.3%Language:JavaScript 0.3%