File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ branch = "main"
1212[vars ]
1313bucket_name = " {{.nuon.components.gcs_bucket.outputs.bucket_name}}"
1414project_id = " {{.nuon.install_stack.outputs.project_id}}"
15+ install_id = " {{.nuon.install.id}}"
1516domain = " {{.nuon.inputs.inputs.sub_domain}}.{{.nuon.inputs.inputs.domain}}"
Original file line number Diff line number Diff line change 11resource "google_compute_backend_bucket" "site" {
2- name = " static-site-backend-${ var . project_id } "
2+ name = " static-site-backend-${ var . install_id } "
33 bucket_name = var. bucket_name
44 project = var. project_id
55 enable_cdn = true
66}
77
88resource "google_compute_url_map" "site" {
9- name = " static-site-${ var . project_id } "
9+ name = " static-site-${ var . install_id } "
1010 project = var. project_id
1111 default_service = google_compute_backend_bucket. site . id
1212}
1313
1414resource "google_compute_target_http_proxy" "site" {
15- name = " static-site-proxy-${ var . project_id } "
15+ name = " static-site-proxy-${ var . install_id } "
1616 project = var. project_id
1717 url_map = google_compute_url_map. site . id
1818}
1919
2020resource "google_compute_global_forwarding_rule" "site" {
21- name = " static-site-fwd-${ var . project_id } "
21+ name = " static-site-fwd-${ var . install_id } "
2222 project = var. project_id
2323 target = google_compute_target_http_proxy. site . id
2424 port_range = " 80"
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ variable "project_id" {
66 type = string
77}
88
9+ variable "install_id" {
10+ type = string
11+ }
12+
913variable "domain" {
1014 type = string
1115}
You can’t perform that action at this time.
0 commit comments