File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -211,13 +211,13 @@ locals {
211
211
}
212
212
dataProtection = {
213
213
create = false
214
- crt = " ${ base64encode (tls_locally_signed_cert. data_protection . cert_pem )} "
215
- key = " ${ base64encode (tls_private_key. data_protection_private_key . private_key_pem )} "
214
+ crt = fileexists ( " data_protection.pem " ) ? " ${ base64encode ( file ( " data_protection.pem " )) } " : " ${ base64encode (tls_locally_signed_cert. data_protection . cert_pem )} "
215
+ key = fileexists ( " data_protection_private_key.pem " ) ? " ${ base64encode ( file ( " data_protection_private_key.pem " )) } " : " ${ base64encode (tls_private_key. data_protection_private_key . private_key_pem )} "
216
216
}
217
217
signingKey = {
218
218
create = false
219
- crt = " ${ base64encode (tls_locally_signed_cert. signing_key . cert_pem )} "
220
- key = " ${ base64encode (tls_private_key. signing_key_private_key . private_key_pem )} "
219
+ crt = fileexists ( " signing_key.pem " ) ? " ${ base64encode ( file ( " signing_key.pem " )) } " : " ${ base64encode (tls_locally_signed_cert. signing_key . cert_pem )} "
220
+ key = fileexists ( " signing_key_private_key.pem " ) ? " ${ base64encode ( file ( " signing_key_private_key.pem " )) } " : " ${ base64encode (tls_private_key. signing_key_private_key . private_key_pem )} "
221
221
}
222
222
mysql = {
223
223
architecture = " replication"
You can’t perform that action at this time.
0 commit comments