Skip to content
7 changes: 7 additions & 0 deletions mmv1/products/compute/RegionSslCertificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@
- 'name_prefix'
# Uses id.UniqueId
skip_vcr: true
- name: 'region_ssl_certificate_basic_writeonly'
primary_resource_id: 'default'
ignore_read_extra:
- 'name_prefix'
# Uses id.UniqueId
skip_vcr: true
- name: 'region_ssl_certificate_random_provider'
primary_resource_id: 'default'
external_providers: ["random", "time"]
# Uses id.UniqueId

Check warning on line 72 in mmv1/products/compute/RegionSslCertificate.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

72:7 [comments-indentation] comment not indented like content
skip_vcr: true
- name: 'region_ssl_certificate_target_https_proxies'
primary_resource_id: 'default'
Expand Down Expand Up @@ -138,6 +144,7 @@
immutable: true
ignore_read: true
sensitive: true
write_only: true
diff_suppress_func: 'sha256DiffSuppress'
custom_flatten: 'templates/terraform/custom_flatten/sha256.tmpl'
is_missing_in_cai: true
7 changes: 7 additions & 0 deletions mmv1/products/compute/SslCertificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@
- 'name_prefix'
# Uses id.UniqueId
skip_vcr: true
- name: 'ssl_certificate_basic_writeonly'
primary_resource_id: 'default'
ignore_read_extra:
- 'name_prefix'
# Uses id.UniqueId
skip_vcr: true
- name: 'ssl_certificate_random_provider'
primary_resource_id: 'default'
external_providers: ["random", "time"]
# Uses id.UniqueId

Check warning on line 68 in mmv1/products/compute/SslCertificate.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

68:7 [comments-indentation] comment not indented like content
skip_vcr: true
- name: 'ssl_certificate_target_https_proxies'
primary_resource_id: 'default'
Expand Down Expand Up @@ -121,5 +127,6 @@
immutable: true
ignore_read: true
sensitive: true
write_only: true
diff_suppress_func: 'sha256DiffSuppress'
custom_flatten: 'templates/terraform/custom_flatten/sha256.tmpl'
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "google_compute_region_ssl_certificate" "default" {
region = "us-central1"
name_prefix = "my-certificate-"
description = "a description"
private_key_wo = file("path/to/private.key")
private_key_wo_version = parseint(filesha256("path/to/private.key"),16)%pow(2,32)
certificate = file("path/to/certificate.crt")

lifecycle {
create_before_destroy = true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "google_compute_ssl_certificate" "default" {
name_prefix = "my-certificate-"
description = "a description"
private_key_wo = file("path/to/private.key")
private_key_wo_version = parseint(filesha256("path/to/private.key"),16)%pow(2,32)
certificate = file("path/to/certificate.crt")

lifecycle {
create_before_destroy = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,11 @@ resource "google_compute_region_ssl_certificate" "foobar1" {
}

resource "google_compute_region_ssl_certificate" "foobar2" {
name = "httpsproxy-test-cert2-%s"
description = "very descriptive"
private_key = file("test-fixtures/test.key")
certificate = file("test-fixtures/test.crt")
name = "httpsproxy-test-cert2-%s"
description = "very descriptive"
private_key_wo = file("test-fixtures/test.key")
private_key_wo_version = parseint(filesha256("test-fixtures/test.key"),16) %% pow(2,32)
certificate = file("test-fixtures/test.crt")
}
`, id, id, id, id, id, id, id, id, id)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ resource "google_compute_ssl_certificate" "foobar1" {
}

resource "google_compute_ssl_certificate" "foobar2" {
name = "tf-test-httpsproxy-cert2-%s"
description = "very descriptive"
private_key = file("test-fixtures/test.key")
certificate = file("test-fixtures/test.crt")
name = "tf-test-httpsproxy-cert2-%s"
description = "very descriptive"
private_key_wo = file("test-fixtures/test.key")
private_key_wo_version = parseint(filesha256("test-fixtures/test.key"),16) %% pow(2,32)
certificate = file("test-fixtures/test.crt")
}
`, id, id, id, id, id, id, id)
}
Expand Down
Loading