AWS ACM PCA Certificate Validation
This page shows how to write Terraform for ACM PCA Certificate Validation and write them securely.
aws_acm_certificate_validation (Terraform)
The Certificate Validation in ACM PCA can be configured in Terraform with the resource name aws_acm_certificate_validation
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_acm_certificate_validation" "skoleapp_com" {
certificate_arn = aws_acm_certificate.skoleapp_com.arn
validation_record_fqdns = [aws_route53_record.skoleapp_com_cert.fqdn]
}
resource "aws_acm_certificate_validation" "skole_fi" {
resource "aws_acm_certificate_validation" "botletics" {
provider = aws.acm
certificate_arn = aws_acm_certificate.botletics.arn
validation_record_fqdns = [aws_route53_record.botletics_validation_record.fqdn]
}
Parameters
-
certificate_arn
required - string -
id
optional computed - string -
validation_record_fqdns
optional - set of string -
timeouts
single block-
create
optional - string
-
Explanation in Terraform Registry
This resource represents a successful validation of an ACM certificate in concert with other resources. Most commonly, this resource is used together with
aws_route53_record
andaws_acm_certificate
to request a DNS validated certificate, deploy the required validation records and wait for validation to complete.WARNING: This resource implements a part of the validation workflow. It does not represent a real-world entity in AWS, therefore changing or deleting this resource on its own has no immediate effect.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS ACM PCA Certificate Validation?
AWS ACM PCA Certificate Validation is a resource for ACM PCA of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS ACM PCA Certificate Validation?
For Terraform, the skoleapp/skole-infra and maxsynnott/botletics source code examples are useful. See the Terraform Example section for further details.