Create a wildcard in ACM for the domain that we own and DNS is in a different AWS account:
data "aws_route53_zone" "externaldns_link" {
provider = aws.dns
name = "${var.domain_name}."
}
provider "aws" {
region = "us-west-2"
profile = "default"
}
provider "aws" {
alias = "dns"
region = "us-west-2"
profile = "awsacct2"
}
module "acm_domain_wildcard" {
providers = {
aws.dns = aws.dns
}
source = "github.com/andymotta/acm-domain-wildcard"
domain_name = var.domain_name
zone_id = data.aws_route53_zone.externaldns_link.zone_id
}Then apply to Helm chart
resource "helm_release" "chart" {
name = "release"
repository = "repo"
chart = "chart"
values = [
templatefile("${path.module}/chart-values.yaml", {
certificate_arn = var.certificate_arn
})
]
}grafana:
ingress:
annotations:
alb.ingress.kubernetes.io/certificate-arn: ${certificate_arn}| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| domain_name | The name of a domain that you own | string |
"" |
yes |
| zone_id | Public zone for domain that will hold the domain verification records | string |
"" |
yes |