Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Modular Cloud SQL database instance for Terraform.

License

NotificationsYou must be signed in to change notification settings

C20O20/terraform-google-sql-db

 
 

Repository files navigation

terraform-google-sql makes it easy to create Google CloudSQL instance and implement high availability settings.This module consists of the following submodules:

See more details in each module's README.

Compatibility

This module is meant for use with Terraform 0.12. If you haven'tupgradedand need a Terraform 0.11.x-compatible version of this module, the lastreleased version intended for Terraform 0.11.x isv1.2.0.

Upgrading

The current version is 3.X. The following guides are available to assist with upgrades:

Root module

The root module has been deprecated. Please switch to using one of the submodules.

Requirements

Installation Dependencies

The following dependency must be available for SQL Server module:

Configure a Service Account

In order to execute this module you must have a Service Account with the following:

Roles

  • Cloud SQL Admin:roles/cloudsql.admin
  • Compute Network Admin:roles/compute.networkAdmin

Enable APIs

In order to operate with the Service Account you must activate the following APIs on the project where the Service Account was created:

  • Cloud SQL Admin API:sqladmin.googleapis.com

In order to use Private Service Access, required for using Private IPs, you must activatethe following APIs on the project where your VPC resides:

  • Cloud SQL Admin API:sqladmin.googleapis.com
  • Compute Engine API:compute.googleapis.com
  • Service Networking API:servicenetworking.googleapis.com
  • Cloud Resource Manager API:cloudresourcemanager.googleapis.com

Service Account Credentials

You can pass the service account credentials into this module by setting the following environment variables:

  • GOOGLE_CREDENTIALS
  • GOOGLE_CLOUD_KEYFILE_JSON
  • GCLOUD_KEYFILE_JSON

See moredetails.

Provision Instructions

This module has no root configuration. A module with no root configuration cannot be used directly.

Copy and paste into your Terraform configuration, insert the variables, and run terraform init :

module "sql-db" {  source  = "GoogleCloudPlatform/sql-db/google//modules/mysql"  version = "3.1.0"}

or :

module "sql-db" {  source  = "GoogleCloudPlatform/sql-db/google//modules/postgresql"  version = "3.1.0"}

Contributing

Refer to thecontribution guidelines forinformation on contributing to this module.

About

Modular Cloud SQL database instance for Terraform.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL75.3%
  • Ruby20.8%
  • Makefile3.0%
  • Shell0.9%

[8]ページ先頭

©2009-2025 Movatter.jp