Skip to content

Commit

Permalink
feat: save hosted zone id into ssm
Browse files Browse the repository at this point in the history
  • Loading branch information
burib authored Jan 4, 2025
1 parent 983c4d4 commit ed4006b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ resource "aws_route53_record" "wildcard_cert_validation" {
ttl = "60"
}

resource "aws_ssm_parameter" "hosted_zone_id" {
name = "/zones/${replace(aws_route53_zone.this.name, ".", "-DOT-")}/id"
value = aws_route53_zone.this.zone_id
description = "Route53 Hosted Zone ID for ${aws_route53_zone.this.name}"
type = "String"
}

resource "aws_ssm_parameter" "wildcard_cert_arn" {
name = "/certificates/${replace(aws_route53_zone.this.name, ".", "-DOT-")}/wildcard/arn"
value = aws_acm_certificate.wildcard_cert.arn
Expand Down

0 comments on commit ed4006b

Please sign in to comment.