我正在尝试在这里的Terraform代码中使用组织证书。
crt.tf
resource "aws_iam_server_certificate" "acm_crt" {
name = "acm_crt"
certificate_body = "s3://cicd-storage/csr_keys_crts/crt.txt"
private_key = "s3://cicd-storage/csr_keys_crts/csr.pem"
}
错误:应用计划时出错:
发生1个错误:
aws_iam_server_certificate.acm_crt:发生1个错误:
aws_iam_server_certificate.acm_crt:上传服务器证书时出错,错误:MalformedCertificate:无法解析证书。请确保证书为PEM格式。