Created
March 31, 2021 14:40
-
-
Save elouanKeryell-Even/a9b7878b8959ab58921bdc1b1456da20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
~ update in-place | |
- destroy | |
-/+ destroy and then create replacement | |
Terraform will perform the following actions: | |
# google_cloud_run_service.default will be updated in-place | |
~ resource "google_cloud_run_service" "default" { | |
autogenerate_revision_name = false | |
id = "locations/europe-west1/namespaces/redacted-dv/services/redacted-ew1-dv-gcr" | |
location = "europe-west1" | |
name = "redacted-ew1-dv-gcr" | |
project = "redacted-dv" | |
status = [ | |
{ | |
conditions = [ | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "Ready" | |
}, | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "ConfigurationsReady" | |
}, | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "RoutesReady" | |
}, | |
] | |
latest_created_revision_name = "redacted-ew1-dv-gcr-redacted" | |
latest_ready_revision_name = "redacted-ew1-dv-gcr-redacted" | |
observed_generation = 6 | |
url = "https://redacted-ew1-dv-gcr-redacted-ew.a.run.app" | |
}, | |
] | |
metadata { | |
annotations = { | |
"run.googleapis.com/ingress" = "all" | |
"run.googleapis.com/ingress-status" = "all" | |
"run.googleapis.com/launch-stage" = "BETA" | |
"serving.knative.dev/creator" = "redacted@cloudbuild.gserviceaccount.com" | |
"serving.knative.dev/lastModifier" = "redacted@cloudbuild.gserviceaccount.com" | |
} | |
generation = 6 | |
labels = { | |
"cloud.googleapis.com/location" = "europe-west1" | |
} | |
namespace = "redacted-dv" | |
resource_version = "AAW+vrgEt1c" | |
self_link = "/apis/serving.knative.dev/v1/namespaces/387065659235/services/redacted-ew1-dv-gcr" | |
uid = "redacted" | |
} | |
~ template { | |
~ metadata { | |
~ annotations = { | |
"autoscaling.knative.dev/maxScale" = "1000" | |
- "run.googleapis.com/sandbox" = "gvisor" -> null | |
} | |
generation = 0 | |
labels = {} | |
} | |
~ spec { | |
container_concurrency = 10 | |
service_account_name = "redactedredacted-dv-sa@redacted-dv.iam.gserviceaccount.com" | |
timeout_seconds = 900 | |
~ containers { | |
args = [] | |
command = [] | |
~ image = "gcr.io/redacted-dv/redacted@sha256:redacted" -> "gcr.io/redacted-dv/redacted@sha256:redacted" | |
env { | |
name = "PROJECT" | |
value = "redacted-dv" | |
} | |
env { | |
name = "PROJECT_ENV" | |
value = "dv" | |
} | |
env { | |
name = "APP_NAME" | |
value = "redacted" | |
} | |
env { | |
name = "NODE_ENV" | |
value = "dev" | |
} | |
env { | |
name = "DATASET_ID" | |
value = "redacted" | |
} | |
env { | |
name = "BQ_PROJECT" | |
value = "redacted" | |
} | |
ports { | |
container_port = 8080 | |
name = "http1" | |
} | |
resources { | |
limits = { | |
"cpu" = "1000m" | |
"memory" = "1Gi" | |
} | |
requests = {} | |
} | |
} | |
} | |
} | |
traffic { | |
latest_revision = true | |
percent = 100 | |
} | |
} | |
# google_cloud_run_service.rescue will be updated in-place | |
~ resource "google_cloud_run_service" "rescue" { | |
autogenerate_revision_name = false | |
id = "locations/europe-west3/namespaces/redacted-dv/services/redacted-ew3-dv-gcr" | |
location = "europe-west3" | |
name = "redacted-ew3-dv-gcr" | |
project = "redacted-dv" | |
status = [ | |
{ | |
conditions = [ | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "Ready" | |
}, | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "ConfigurationsReady" | |
}, | |
{ | |
message = "" | |
reason = "" | |
status = "True" | |
type = "RoutesReady" | |
}, | |
] | |
latest_created_revision_name = "redacted-ew3-dv-gcr-redacted" | |
latest_ready_revision_name = "redacted-ew3-dv-gcr-redacted" | |
observed_generation = 2 | |
url = "https://redacted-ew3-dv-gcr-redacted-ey.a.run.app" | |
}, | |
] | |
metadata { | |
annotations = { | |
"run.googleapis.com/ingress" = "all" | |
"run.googleapis.com/ingress-status" = "all" | |
"run.googleapis.com/launch-stage" = "BETA" | |
"serving.knative.dev/creator" = "redacted@cloudbuild.gserviceaccount.com" | |
"serving.knative.dev/lastModifier" = "redacted@cloudbuild.gserviceaccount.com" | |
} | |
generation = 2 | |
labels = { | |
"cloud.googleapis.com/location" = "europe-west3" | |
} | |
namespace = "redacted-dv" | |
resource_version = "AAW+vrgc3UM" | |
self_link = "/apis/serving.knative.dev/v1/namespaces/387065659235/services/redacted-ew3-dv-gcr" | |
uid = "redacted" | |
} | |
~ template { | |
~ metadata { | |
~ annotations = { | |
"autoscaling.knative.dev/maxScale" = "1000" | |
- "run.googleapis.com/sandbox" = "gvisor" -> null | |
} | |
generation = 0 | |
labels = {} | |
} | |
~ spec { | |
container_concurrency = 10 | |
service_account_name = "redactedredacted-dv-sa@redacted-dv.iam.gserviceaccount.com" | |
timeout_seconds = 900 | |
~ containers { | |
args = [] | |
command = [] | |
~ image = "gcr.io/redacted-dv/redacted@sha256:redacted" -> "gcr.io/redacted-dv/redacted@sha256:redacted" | |
env { | |
name = "PROJECT" | |
value = "redacted-dv" | |
} | |
env { | |
name = "PROJECT_ENV" | |
value = "dv" | |
} | |
env { | |
name = "APP_NAME" | |
value = "redacted" | |
} | |
env { | |
name = "NODE_ENV" | |
value = "dev" | |
} | |
env { | |
name = "DATASET_ID" | |
value = "redacted" | |
} | |
env { | |
name = "BQ_PROJECT" | |
value = "redacted" | |
} | |
ports { | |
container_port = 8080 | |
name = "http1" | |
} | |
resources { | |
limits = { | |
"cpu" = "1000m" | |
"memory" = "1Gi" | |
} | |
requests = {} | |
} | |
} | |
} | |
} | |
traffic { | |
latest_revision = true | |
percent = 100 | |
} | |
} | |
# module.external-https-loadbalancer.google_compute_url_map.default will be updated in-place | |
~ resource "google_compute_url_map" "default" { | |
creation_timestamp = "2021-03-29T07:36:58.566-07:00" | |
~ default_service = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/backendServices/redacted-lb-backend-redacted-bck" -> (known after apply) | |
fingerprint = "redacted" | |
id = "projects/redacted-dv/global/urlMaps/redacted-lb" | |
map_id = redacted | |
name = "redacted-lb" | |
project = "redacted-dv" | |
self_link = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/urlMaps/redacted-lb" | |
host_rule { | |
hosts = [ | |
"*", | |
] | |
path_matcher = "allpaths" | |
} | |
~ path_matcher { | |
~ default_service = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/backendServices/redacted-lb-backend-redacted-bck" -> (known after apply) | |
name = "allpaths" | |
} | |
} | |
# module.external-https-loadbalancer.module.cloud_run_negs.google_compute_region_network_endpoint_group.network_endpoint_group["redacted-bck"] will be destroyed | |
- resource "google_compute_region_network_endpoint_group" "network_endpoint_group" { | |
- description = "default front serving" -> null | |
- id = "projects/redacted-dv/regions/europe-west1/networkEndpointGroups/redacted-bck-nge" -> null | |
- name = "redacted-bck-nge" -> null | |
- network_endpoint_type = "SERVERLESS" -> null | |
- project = "redacted-dv" -> null | |
- region = "https://www.googleapis.com/compute/v1/projects/redacted-dv/regions/europe-west1" -> null | |
- self_link = "https://www.googleapis.com/compute/v1/projects/redacted-dv/regions/europe-west1/networkEndpointGroups/redacted-bck-nge" -> null | |
- cloud_run { | |
- service = "redacted-ew1-dv-gcr" -> null | |
} | |
} | |
# module.external-https-loadbalancer.module.generated_cloud_loadbalancer.google_compute_backend_service.default["redacted-bck"] will be destroyed | |
- resource "google_compute_backend_service" "default" { | |
- affinity_cookie_ttl_sec = 0 -> null | |
- connection_draining_timeout_sec = 300 -> null | |
- creation_timestamp = "2021-03-29T07:36:36.507-07:00" -> null | |
- custom_request_headers = [] -> null | |
- custom_response_headers = [] -> null | |
- enable_cdn = false -> null | |
- fingerprint = "redacted" -> null | |
- health_checks = [] -> null | |
- id = "projects/redacted-dv/global/backendServices/redacted-lb-backend-redacted-bck" -> null | |
- load_balancing_scheme = "EXTERNAL" -> null | |
- name = "redacted-lb-backend-redacted-bck" -> null | |
- port_name = "http" -> null | |
- project = "redacted-dv" -> null | |
- protocol = "HTTP" -> null | |
- security_policy = "https://www.googleapis.com/compute/beta/projects/redacted-dv/global/securityPolicies/redacted-lb-policy" -> null | |
- self_link = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/backendServices/redacted-lb-backend-redacted-bck" -> null | |
- session_affinity = "NONE" -> null | |
- timeout_sec = 30 -> null | |
- backend { | |
- balancing_mode = "UTILIZATION" -> null | |
- capacity_scaler = 1 -> null | |
- group = "https://www.googleapis.com/compute/v1/projects/redacted-dv/regions/europe-west1/networkEndpointGroups/redacted-bck-nge" -> null | |
- max_connections = 0 -> null | |
- max_connections_per_endpoint = 0 -> null | |
- max_connections_per_instance = 0 -> null | |
- max_rate = 0 -> null | |
- max_rate_per_endpoint = 0 -> null | |
- max_rate_per_instance = 0 -> null | |
- max_utilization = 0 -> null | |
} | |
- log_config { | |
- enable = true -> null | |
- sample_rate = 1 -> null | |
} | |
} | |
# module.external-https-loadbalancer.module.generated_cloud_loadbalancer.google_compute_backend_service.default["redacted-ew1-redacted"] will be created | |
+ resource "google_compute_backend_service" "default" { | |
+ connection_draining_timeout_sec = 300 | |
+ creation_timestamp = (known after apply) | |
+ enable_cdn = false | |
+ fingerprint = (known after apply) | |
+ id = (known after apply) | |
+ load_balancing_scheme = "EXTERNAL" | |
+ name = "redacted-lb-backend-redacted-ew1-redacted" | |
+ port_name = (known after apply) | |
+ project = "redacted-dv" | |
+ protocol = "HTTP" | |
+ security_policy = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/securityPolicies/redacted-lb-policy" | |
+ self_link = (known after apply) | |
+ session_affinity = (known after apply) | |
+ timeout_sec = (known after apply) | |
+ backend { | |
+ balancing_mode = "UTILIZATION" | |
+ capacity_scaler = 1 | |
+ group = "projects/redacted-dv/regions/europe-west1/networkEndpointGroups/redacted-ew1-redacted-nge" | |
+ max_utilization = 0.8 | |
} | |
+ cdn_policy { | |
+ cache_mode = (known after apply) | |
+ client_ttl = (known after apply) | |
+ default_ttl = (known after apply) | |
+ max_ttl = (known after apply) | |
+ negative_caching = (known after apply) | |
+ serve_while_stale = (known after apply) | |
+ signed_url_cache_max_age_sec = (known after apply) | |
+ cache_key_policy { | |
+ include_host = (known after apply) | |
+ include_protocol = (known after apply) | |
+ include_query_string = (known after apply) | |
+ query_string_blacklist = (known after apply) | |
+ query_string_whitelist = (known after apply) | |
} | |
+ negative_caching_policy { | |
+ code = (known after apply) | |
+ ttl = (known after apply) | |
} | |
} | |
+ log_config { | |
+ enable = true | |
+ sample_rate = 1 | |
} | |
} | |
# module.external-https-loadbalancer.module.https_forward_default_url_map.google_compute_ssl_certificate.default must be replaced | |
-/+ resource "google_compute_ssl_certificate" "default" { | |
~ certificate = (sensitive value) | |
~ certificate_id = redacted -> (known after apply) | |
~ creation_timestamp = "2021-03-29T07:46:07.933-07:00" -> (known after apply) | |
~ id = "projects/redacted-dv/global/sslCertificates/redacted-lb-cert" -> (known after apply) | |
name = "redacted-lb-cert" | |
+ name_prefix = (known after apply) | |
private_key = (sensitive value) | |
project = "redacted-dv" | |
~ self_link = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/sslCertificates/redacted-lb-cert" -> (known after apply) | |
} | |
# module.external-https-loadbalancer.module.https_forward_default_url_map.google_compute_target_https_proxy.https will be updated in-place | |
~ resource "google_compute_target_https_proxy" "https" { | |
creation_timestamp = "2021-03-29T07:46:19.255-07:00" | |
description = "Managed by Terraform" | |
id = "projects/redacted-dv/global/targetHttpsProxies/redacted-lb-https-proxy" | |
name = "redacted-lb-https-proxy" | |
project = "redacted-dv" | |
proxy_bind = false | |
proxy_id = redacted | |
quic_override = "NONE" | |
self_link = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/targetHttpsProxies/redacted-lb-https-proxy" | |
~ ssl_certificates = [ | |
- "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/sslCertificates/redacted-lb-cert", | |
] -> (known after apply) | |
url_map = "https://www.googleapis.com/compute/v1/projects/redacted-dv/global/urlMaps/redacted-lb" | |
} | |
# module.external-https-loadbalancer.module.https_forward_default_url_map.tls_self_signed_cert.default must be replaced | |
-/+ resource "tls_self_signed_cert" "default" { | |
allowed_uses = [ | |
"key_encipherment", | |
"digital_signature", | |
"server_auth", | |
] | |
~ cert_pem = <<~EOT | |
redacted | |
EOT -> (known after apply) | |
early_renewal_hours = 3 | |
~ id = "redacted" -> (known after apply) | |
ip_addresses = [ | |
"redacted", | |
] | |
key_algorithm = "RSA" | |
private_key_pem = (sensitive value) | |
~ ready_for_renewal = false -> true | |
~ validity_end_time = "2022-03-29T14:46:07.531754659Z" -> (known after apply) | |
~ validity_period_hours = redacted -> redacted # forces replacement | |
~ validity_start_time = "2021-03-29T14:46:07.531754659Z" -> (known after apply) | |
~ subject { | |
common_name = "redacted" | |
organization = "redacted" | |
- street_address = [] -> null | |
} | |
} | |
Plan: 3 to add, 4 to change, 4 to destroy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment