Skip to content

Commit 4e2548c

Browse files
committed
feat: add example config
1 parent 3e1a065 commit 4e2548c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

resources-google.tf

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ resource "google_project" "project" {
33
name = var.project_id
44
project_id = var.project_id
55
org_id = var.org_id
6+
7+
billing_account = var.billing_account
68
}
79

810
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster

terraform.tfvars.example

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
org_id = "123456789000" # your GCP org ID
2+
billing_account = "XXXXXX-XXXXXX-XXXXXX" # the billing account id for the project
3+
project_id = "development" # the name of project to create and hold resources
4+
region = "northamerica-northeast2" # toronto
5+
cluster_name = "my-company" # what to name the cluster
6+
7+
# Get your IP adddress with: `echo "$(curl -s ifconfig.me)/24"`
8+
database_instance_allowed_network = "0.0.0.0/0"
9+
database_credentials = {
10+
user = "admin"
11+
password = "myStrongPassword$" # ideally set a runtime in pipeline env.
12+
}

variables.tf

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ variable "project_id" {
77
description = "The project ID to host the cluster in."
88
}
99

10+
variable "billing_account" {
11+
description = "The project ID to host the cluster in."
12+
}
13+
1014
variable "region" {
1115
description = "The region to host the cluster in."
1216
}

0 commit comments

Comments
 (0)