Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
332 views
Welcome To Ask or Share your Answers For Others

1 Answer

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")
    } 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...