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]

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


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 and aws_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.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.