Resource: aws_apprunner_custom_domain_association

Manages an App Runner Custom Domain association.

Example Usage

resource "aws_apprunner_custom_domain_association" "example" {
  domain_name = "example.com"
  service_arn = aws_apprunner_service.example.arn
}

Argument Reference

The following arguments supported:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Certificate Validation Records

The configuration block consists of the following arguments:

Import

In Terraform v1.5.0 and later, use an import block to import App Runner Custom Domain Associations using the domain_name and service_arn separated by a comma (,). For example:

import {
  to = aws_apprunner_custom_domain_association.example
  id = "example.com,arn:aws:apprunner:us-east-1:123456789012:service/example-app/8fe1e10304f84fd2b0df550fe98a71fa"
}

Using terraform import, import App Runner Custom Domain Associations using the domain_name and service_arn separated by a comma (,). For example:

% terraform import aws_apprunner_custom_domain_association.example example.com,arn:aws:apprunner:us-east-1:123456789012:service/example-app/8fe1e10304f84fd2b0df550fe98a71fa