Last active
October 16, 2024 14:03
-
-
Save nicosingh/8f6480ed01a20d3d8ca31c1dc4e01dce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_s3_object" "certificate_artifacts_s3_objects" { | |
for_each = toset(["certificate_pem", "issuer_pem", "private_key_pem"]) | |
bucket = "test-singh-cl-ssl-cert" # TODO put your own S3 bucket, and create it before if necessary! | |
key = each.key # TODO prefix with your own bucket path if there is any | |
content = lookup(acme_certificate.certificate, "${each.key}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment