File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ resource "google_project" "project" {
3
3
name = var. project_id
4
4
project_id = var. project_id
5
5
org_id = var. org_id
6
+
7
+ billing_account = var. billing_account
6
8
}
7
9
8
10
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ variable "project_id" {
7
7
description = " The project ID to host the cluster in."
8
8
}
9
9
10
+ variable "billing_account" {
11
+ description = " The project ID to host the cluster in."
12
+ }
13
+
10
14
variable "region" {
11
15
description = " The region to host the cluster in."
12
16
}
You can’t perform that action at this time.
0 commit comments