简体   繁体   English

用于验证证书的错误 ACM (AWS) 和 cloudflare

[英]error ACM (AWS) and cloudflare for validate a certificate

resource "aws_acm_certificate" "cert" {
  domain_name               = "atlantis.mydomain"
  validation_method         = "DNS"

}
data "cloudflare_zones" "this" {
  filter {
    name   = "myzone.com"
    status = "active"
    paused = false
  }
}

resource "cloudflare_record" "cert_validation" {
  zone_id  = data.cloudflare_zones.this.zones[0].id
  name     = aws_acm_certificate.cert.domain_validation_options.0.resource_record_name
  type     = aws_acm_certificate.cert.domain_validation_options.0.resource_record_type
  value    = aws_acm_certificate.cert.domain_validation_options.0.resource_record_value
  ttl      = 3600
  proxied  = false
}

resource "aws_acm_certificate_validation" "cert" {
  certificate_arn         = aws_acm_certificate.cert.arn
  validation_record_fqdns = [cloudflare_record.cert_validation.hostname]

}

1 error occurred: * missing atlantis.mydomain DNS validation record: _1002e16ebd84cda6c12a865cf899175a.atlantis.mydomain发生 1 个错误:*缺少 atlantis.mydomain DNS 验证记录:_1002e16ebd84cda6c12a865cf899175a.atlantis.mydomain

i don't know how to resolve this error我不知道如何解决这个错误

i have a problem when i want create a certificat ACM and validate with cloudflare in aws and with terraform.当我想创建证书 ACM 并使用 aws 中的 cloudflare 和 terraform 进行验证时,我遇到了问题。

i have an error during the deployment about dns vérification the record and the certificate have been created, but not validate我在部署过程中遇到关于 dns 验证记录和证书已创建但未验证的错误
my cloudflare module is working well and for months我的 cloudflare 模块运行良好,并且运行了几个月

You need to use the values from the Terraform aws_acm_certificate resource's domain_validation_options values to create validation DNS records in CloudFlare.您需要使用 Terraform aws_acm_certificate资源的domain_validation_options值中的值在 CloudFlare 中创建验证 DNS 记录。 These will be entirely separate from the DNS record you are creating to point to your load balancer.这些将与您创建的指向负载均衡器的 DNS 记录完全分开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM