Skip to content

Instantly share code, notes, and snippets.

@paulrobello
Created September 27, 2024 18:29
Show Gist options
  • Save paulrobello/94f52d2184d5bbe51ccb899dc90066c4 to your computer and use it in GitHub Desktop.
Save paulrobello/94f52d2184d5bbe51ccb899dc90066c4 to your computer and use it in GitHub Desktop.
LS Pro ACM Private CA Bug
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.69.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
resource "aws_route53_zone" "r53_zone" {
name = "bug.ea.nonprod.aws.priv"
force_destroy = true
}
resource "aws_acm_certificate" "cert" {
domain_name = "api.${aws_route53_zone.r53_zone.name}"
subject_alternative_names = ["api.${aws_route53_zone.r53_zone.name}"]
certificate_authority_arn = "arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/6beca5fe-2a36-4c2d-824d-cb9f093c5583"
lifecycle {
create_before_destroy = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment