Difference between revisions of "Terraform resource: aws acm certificate"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate
+
<code>aws_acm_certificate</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate</ref> resource
 +
 
 +
== Arguments ==
 +
* <code>[[domain_name]]</code>
 +
* <code>id</code> - The [[ARN]] of the certificate
 +
* <code>arn</code> - The ARN of the certificate
 +
* <code>[[subject_alternative_names]]</code>
  
 
== Examples ==
 
== Examples ==
Line 11: Line 17:
 
   }
 
   }
 
   
 
   
   lifecycle {
+
   [[Terraform lifecycle meta-argument|lifecycle]] {
     create_before_destroy = true
+
     [[create_before_destroy]] = true
 
   }
 
   }
 
  }
 
  }
Line 30: Line 36:
 
   }
 
   }
 
  }
 
  }
 
== Arguments ==
 
* <code>[[domain_name]]</code>
 
 
* <code>id</code> - The [[ARN]] of the certificate
 
* <code>arn</code> - The ARN of the certificate
 
  
 
== Related ==
 
== Related ==
 +
* <code>[[aws_lb_listener]]</code> <code>[[certificate_arn]]</code>
 
* <code>[[AWS::CertificateManager]]</code>
 
* <code>[[AWS::CertificateManager]]</code>
 
* [[Terraform ACM]]
 
* [[Terraform ACM]]
 
* [[AWS ALB]]
 
* [[AWS ALB]]
[[aws_acm_certificate_validation]]
+
* <code>[[aws_acm_certificate_validation]]</code>
 +
* [[CertificateNotFound]]
 +
* <code>[[aws_route53_record]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{tf acm}}
 
* {{ACM}}
 
* {{ACM}}
* {{terraform aws resources}}
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 12:12, 12 August 2024

aws_acm_certificate [1] resource

Arguments[edit]

Examples[edit]

resource "aws_acm_certificate" "cert" {
 domain_name       = "example.com"
 validation_method = "DNS"

 tags = {
   Environment = "test"
 }

 lifecycle {
   create_before_destroy = true
 }
}
resource "aws_acm_certificate" "cert" {
 domain_name       = "example.com"
 subject_alternative_names = ["*.example.com"]
 validation_method = "DNS"

 tags = {
   Name = "your cert name"
   Environment = var.env
 }

 lifecycle {
   create_before_destroy = true
 }
}

Related[edit]

See also[edit]

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate
  • Advertising: