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

From wikieduonline
Jump to navigation Jump to search
Line 36: Line 36:
 
* <code>id</code> - The [[ARN]] of the certificate
 
* <code>id</code> - The [[ARN]] of the certificate
 
* <code>arn</code> - The ARN of the certificate
 
* <code>arn</code> - The ARN of the certificate
 +
* <code>[[subject_alternative_names]]</code>
  
 
== Related ==
 
== Related ==

Revision as of 17:16, 25 April 2023

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

Examples

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
 }
}

Arguments

Related

See also

Advertising: