Skip to content

Instantly share code, notes, and snippets.

@nicosingh
Last active October 16, 2024 14:03
Show Gist options
  • Save nicosingh/8f6480ed01a20d3d8ca31c1dc4e01dce to your computer and use it in GitHub Desktop.
Save nicosingh/8f6480ed01a20d3d8ca31c1dc4e01dce to your computer and use it in GitHub Desktop.
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