fix random keepers

This commit is contained in:
Yuri Astrakhan 2018-07-06 22:48:21 -04:00 committed by GitHub
parent ef10e32120
commit 0df88d300e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,12 @@ resource "google_compute_ssl_certificate" "default" {
resource "random_id" "certificate" {
byte_length = 4
prefix = "my-certificate-"
# For security, do not expose raw certificate values in the output
keepers {
private_key = "${base64sha256(file("path/to/private.key"))}"
certificate = "${base64sha256(file("path/to/certificate.crt"))}"
}
}
resource "google_compute_ssl_certificate" "default" {