From e2340385a94f423db07a39fe2e3f52b2dcc4bcfe Mon Sep 17 00:00:00 2001 From: Jorge Falcon <22119513+BCTBB@users.noreply.github.com> Date: Fri, 1 Aug 2025 12:54:11 -0400 Subject: [PATCH] Dogfood - Fix error in log on empty cert.00.pem, when retrieving rds tls certificate (#31515) Fix for error log that is generated by csplit when determining the correct certificate to use. ``` Could not find certificate from cert.00.pem ``` --- .../aws-tf-module/templates/mysql_ca_tls_retrieval.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/dogfood/terraform/aws-tf-module/templates/mysql_ca_tls_retrieval.sh.tpl b/infrastructure/dogfood/terraform/aws-tf-module/templates/mysql_ca_tls_retrieval.sh.tpl index 86af0dc138..8c118e6575 100644 --- a/infrastructure/dogfood/terraform/aws-tf-module/templates/mysql_ca_tls_retrieval.sh.tpl +++ b/infrastructure/dogfood/terraform/aws-tf-module/templates/mysql_ca_tls_retrieval.sh.tpl @@ -2,7 +2,7 @@ apk add coreutils openssl wget --quiet https://truststore.pki.rds.amazonaws.com/${aws_region}/${aws_region}-bundle.pem -O ${aws_region}-bundle.dl.pem -csplit -k -f cert. -b '%02d.pem' ${aws_region}-bundle.dl.pem '/-----BEGIN CERTIFICATE-----/' '{*}' +csplit -z -k -f cert. -b '%02d.pem' ${aws_region}-bundle.dl.pem '/-----BEGIN CERTIFICATE-----/' '{*}' for filename in cert.*; do