Difference between revisions of "Terraform resource: aws acm certificate"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate | ||
− | == | + | == Examples == |
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate#create-certificate | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate#create-certificate | ||
resource "aws_acm_certificate" "cert" { | resource "aws_acm_certificate" "cert" { | ||
Line 12: | Line 12: | ||
lifecycle { | 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 | create_before_destroy = true | ||
} | } |
Revision as of 15:21, 12 January 2023
Contents
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
id
- The ARN of the certificatearn
- The ARN of the certificate
Related
See also
- Amazon Certificate Manager,
aws acm
[list-certificates
|request-certificate | delete-certificate | describe-certificate | import-certificate]
- Amazon Certificate Manager (ACM),
aws acm
, Terraform resource: aws acm certificate,UnsupportedCertificate
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
Advertising: