Difference between revisions of "Terraform resource: aws acm certificate"
Jump to navigation
Jump to search
↑ https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <code>aws_acm_certificate</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate</ref> resource | |
== Arguments == | == Arguments == | ||
* <code>[[domain_name]]</code> | * <code>[[domain_name]]</code> | ||
− | |||
* <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> | ||
+ | |||
+ | == Examples == | ||
+ | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate#create-certificate | ||
+ | resource "aws_acm_certificate" "cert" { | ||
+ | domain_name = "example.com" | ||
+ | validation_method = "DNS" | ||
+ | |||
+ | tags = { | ||
+ | Environment = "test" | ||
+ | } | ||
+ | |||
+ | [[Terraform lifecycle meta-argument|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 | ||
+ | } | ||
+ | |||
+ | [[Terraform lifecycle meta-argument|lifecycle]] { | ||
+ | create_before_destroy = true | ||
+ | } | ||
+ | } | ||
== 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]] | ||
+ | * <code>[[aws_acm_certificate_validation]]</code> | ||
+ | * [[CertificateNotFound]] | ||
+ | * <code>[[aws_route53_record]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{tf acm}} |
* {{ACM}} | * {{ACM}} | ||
− | |||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 12:12, 12 August 2024
aws_acm_certificate
[1] resource
Contents
Arguments[edit]
domain_name
id
- The ARN of the certificatearn
- The ARN of the certificatesubject_alternative_names
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]
aws_lb_listener
certificate_arn
AWS::CertificateManager
- Terraform ACM
- AWS ALB
aws_acm_certificate_validation
- CertificateNotFound
aws_route53_record
See also[edit]
- Terraform ACM:
aws_acm_certificate, aws_acm_certificate_validation
, ACM module - Amazon Certificate Manager (ACM),
aws acm
, Terraform resource: aws acm certificate,UnsupportedCertificate
Advertising: