使用Terraform上传SSL证书 [英] Upload ssl certs using terraform

查看:150
本文介绍了使用Terraform上传SSL证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的ssl证书,私钥和中间证书(使用openssl获得).不通过aws.我现在要使用terraform上传它们.我发现 https://github.com/terraform-providers/terraform-provider-aws/issues/3560 ,您可以上传现有证书.但是找不到如何执行此操作的示例.

I have an existing ssl cert, private key and intermediate certs (obtained using openssl). Not through aws. I want to upload them now using terraform. I found https://github.com/terraform-providers/terraform-provider-aws/issues/3560 that you can upload existing certs. But not able to find an example on how to do this.

推荐答案

我找到了问题的答案.该文件对于如何传递参数还不太清楚.

I found the answer to my question. The document was not very clear on how the arguments need to be passed.

resource "aws_acm_certificate" "tch-cert" {
  private_key=file("private.key")
 certificate_body = file("actual_cert.cer")
  certificate_chain=file("inter.cer")
    } 

这篇关于使用Terraform上传SSL证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆