This is a project to generate a Infrastructure in Google Cloud Platform. This works with many modules made with Terraform to set all configuration.
- Google Cloud Platform account
- Create a project
- Create a Service Account - and get the credentials JSON
- Create on google-cloud-storage (optional)
- bucket to storage .tfstate
- set backend name in providers.tf
terraform init -upgrade
terraform apply --auto-approve
terraform destroy --auto-approve
gcloud container clusters get-credentials <CLUSTER_NAME> --region us-central1 --project <PROJECT_NAME>
terraform fmt -recursive
terraform validate
- project_id
- The Project Id
- credentials
- JSON file with credentials
- zone
- region
- db_info
- public_ip_address
- database
- user
- password
- sensitive = true
- cluster_info
- cluster_ca_certificate
- cluster_auth
- cluster_endpoint
- sensitive = true