published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Manages an App Runner Custom Domain association.
NOTE: After creation, you must use the information in the
certificateValidationRecordsattribute to add CNAME records to your DNS. For each mapped domain name, add a mapping to the target App Runner subdomain (found in thednsTargetattribute) and one or more certificate validation records. App Runner then performs DNS validation to verify that you own or control the domain name you associated. App Runner tracks domain validity in a certificate stored in AWS Certificate Manager (ACM).
Example Usage
The attribute certificateValidationRecords has a fixed count of records, 3 when enableWwwSubdomain is true (the default) or 2 otherwise. Due to a limitation in how the forEach and count meta-arguments are handled, they cannot directly use the value of certificateValidationRecords when creating a new aws.apprunner.CustomDomainAssociation, as the value is unknown. A workaround is shown below, using a fixed count based on the value of enableWwwSubdomain.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.apprunner.CustomDomainAssociation("example", {
domainName: "example.com",
serviceArn: exampleAwsApprunnerService.arn,
});
const certificateValidationRecords = example.certificateValidationRecords;
const validation: aws.route53.Record[] = [];
example.enableWwwSubdomain.apply(enableWwwSubdomain => {
for (let range = 0; range < (enableWwwSubdomain ? 3 : 2); range++) {
validation.push(new aws.route53.Record(`validation-${range}`, {
zoneId: exampleAwsRoute53Zone.zoneId,
name: certificateValidationRecords.apply(certificateValidationRecords => certificateValidationRecords[range].name),
type: aws.route53.RecordType.CNAME,
ttl: 300,
records: [certificateValidationRecords.apply(certificateValidationRecords => certificateValidationRecords[range].value)],
}));
}
});
import pulumi
from typing import Any
import pulumi_aws as aws
example = aws.apprunner.CustomDomainAssociation("example",
domain_name="example.com",
service_arn=example_aws_apprunner_service["arn"])
certificate_validation_records = example.certificate_validation_records
validation: list[aws.route53.Record] = []
def create_validation(range_body):
for validation_range in [{"value": i} for i in range(0, range_body)]:
validation.append(aws.route53.Record(f"validation-{validation_range['value']}",
zone_id=example_aws_route53_zone["zoneId"],
name=certificate_validation_records.apply(lambda certificate_validation_records, _validation_range=validation_range: certificate_validation_records[_validation_range["value"]].name),
type=aws.route53.RecordType.CNAME,
ttl=300,
records=[certificate_validation_records.apply(lambda certificate_validation_records, _validation_range=validation_range: certificate_validation_records[_validation_range["value"]].value)]))
example.enable_www_subdomain.apply(lambda resolved_outputs: create_validation(3 if resolved_outputs else 2))
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/apprunner"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apprunner.NewCustomDomainAssociation(ctx, "example", &apprunner.CustomDomainAssociationArgs{
DomainName: pulumi.String("example.com"),
ServiceArn: pulumi.Any(exampleAwsApprunnerService.Arn),
})
if err != nil {
return err
}
certificateValidationRecords := example.CertificateValidationRecords
var validation []*route53.Record
for index := 0; index < int(example.EnableWwwSubdomain.ApplyT(func(enableWwwSubdomain *bool) (int, error) {
var tmp0 int
if enableWwwSubdomain {
tmp0 = 3
} else {
tmp0 = 2
}
return tmp0, nil
}).(pulumi.IntOutput)); index++ {
key0 := index
val0 := index
__res, err := route53.NewRecord(ctx, fmt.Sprintf("validation-%v", key0), &route53.RecordArgs{
ZoneId: pulumi.Any(exampleAwsRoute53Zone.ZoneId),
Name: certificateValidationRecords.ApplyT(func(certificateValidationRecords []apprunner.CustomDomainAssociationCertificateValidationRecord) (*string, error) {
val := certificateValidationRecords[val0].Name
return &val, nil
}).(pulumi.StringPtrOutput),
Type: pulumi.String(route53.RecordTypeCNAME),
Ttl: pulumi.Int(300),
Records: pulumi.StringArray{
certificateValidationRecords.ApplyT(func(certificateValidationRecords []apprunner.CustomDomainAssociationCertificateValidationRecord) (*string, error) {
val := certificateValidationRecords[val0].Value
return &val, nil
}).(pulumi.StringPtrOutput),
},
})
if err != nil {
return err
}
validation = append(validation, __res)
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppRunner.CustomDomainAssociation("example", new()
{
DomainName = "example.com",
ServiceArn = exampleAwsApprunnerService.Arn,
});
var certificateValidationRecords = example.CertificateValidationRecords;
var validation = new List<Aws.Route53.Record>();
for (var rangeIndex = 0; rangeIndex < example.EnableWwwSubdomain.Apply(enableWwwSubdomain => enableWwwSubdomain ? 3 : 2); rangeIndex++)
{
var range = new { Value = rangeIndex };
validation.Add(new Aws.Route53.Record($"validation-{range.Value}", new()
{
ZoneId = exampleAwsRoute53Zone.ZoneId,
Name = certificateValidationRecords.Apply(certificateValidationRecords => certificateValidationRecords[range.Value].Name),
Type = Aws.Route53.RecordType.CNAME,
Ttl = 300,
Records = new[]
{
certificateValidationRecords.Apply(certificateValidationRecords => certificateValidationRecords[range.Value].Value),
},
}));
}
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apprunner.CustomDomainAssociation;
import com.pulumi.aws.apprunner.CustomDomainAssociationArgs;
import com.pulumi.aws.route53.Record;
import com.pulumi.aws.route53.RecordArgs;
import com.pulumi.codegen.internal.KeyedValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CustomDomainAssociation("example", CustomDomainAssociationArgs.builder()
.domainName("example.com")
.serviceArn(exampleAwsApprunnerService.get("arn"))
.build());
final var certificateValidationRecords = example.certificateValidationRecords();
for (var i = 0; i < example.enableWwwSubdomain().applyValue(_enableWwwSubdomain -> _enableWwwSubdomain ? 3 : 2); i++) {
new Record("validation-" + i, RecordArgs.builder()
.zoneId(exampleAwsRoute53Zone.get("zoneId"))
.name(certificateValidationRecords.applyValue(_certificateValidationRecords -> _certificateValidationRecords[range.value()].name()))
.type("CNAME")
.ttl(300)
.records(certificateValidationRecords.applyValue(_certificateValidationRecords -> _certificateValidationRecords[range.value()].value()))
.build());
}
}
}
Example coming soon!
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_apprunner_custom_domain_association" "example" {
lifecycle {
create_before_destroy = true
}
domain_name = "example.com"
service_arn = exampleAwsApprunnerService.arn
}
resource "aws_route53_record" "validation" {
count = aws_apprunner_custom_domain_association.example.enable_www_subdomain ? 3 : 2
pulumi {
name ="validation-${count.index}"
}
lifecycle {
create_before_destroy = true
}
zone_id = exampleAwsRoute53Zone.zoneId
name = local.certificateValidationRecords[count.index].name
type = "CNAME"
ttl = 300
records = [local.certificateValidationRecords[count.index].value]
}
locals {
certificateValidationRecords = aws_apprunner_custom_domain_association.example.certificate_validation_records
}
Create CustomDomainAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomDomainAssociation(name: string, args: CustomDomainAssociationArgs, opts?: CustomResourceOptions);@overload
def CustomDomainAssociation(resource_name: str,
args: CustomDomainAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomDomainAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
service_arn: Optional[str] = None,
enable_www_subdomain: Optional[bool] = None,
region: Optional[str] = None)func NewCustomDomainAssociation(ctx *Context, name string, args CustomDomainAssociationArgs, opts ...ResourceOption) (*CustomDomainAssociation, error)public CustomDomainAssociation(string name, CustomDomainAssociationArgs args, CustomResourceOptions? opts = null)
public CustomDomainAssociation(String name, CustomDomainAssociationArgs args)
public CustomDomainAssociation(String name, CustomDomainAssociationArgs args, CustomResourceOptions options)
type: aws:apprunner:CustomDomainAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_apprunner_custom_domain_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CustomDomainAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomDomainAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomDomainAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomDomainAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomDomainAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var customDomainAssociationResource = new Aws.AppRunner.CustomDomainAssociation("customDomainAssociationResource", new()
{
DomainName = "string",
ServiceArn = "string",
EnableWwwSubdomain = false,
Region = "string",
});
example, err := apprunner.NewCustomDomainAssociation(ctx, "customDomainAssociationResource", &apprunner.CustomDomainAssociationArgs{
DomainName: pulumi.String("string"),
ServiceArn: pulumi.String("string"),
EnableWwwSubdomain: pulumi.Bool(false),
Region: pulumi.String("string"),
})
resource "aws_apprunner_custom_domain_association" "customDomainAssociationResource" {
lifecycle {
create_before_destroy = true
}
domain_name = "string"
service_arn = "string"
enable_www_subdomain = false
region = "string"
}
var customDomainAssociationResource = new com.pulumi.aws.apprunner.CustomDomainAssociation("customDomainAssociationResource", com.pulumi.aws.apprunner.CustomDomainAssociationArgs.builder()
.domainName("string")
.serviceArn("string")
.enableWwwSubdomain(false)
.region("string")
.build());
custom_domain_association_resource = aws.apprunner.CustomDomainAssociation("customDomainAssociationResource",
domain_name="string",
service_arn="string",
enable_www_subdomain=False,
region="string")
const customDomainAssociationResource = new aws.apprunner.CustomDomainAssociation("customDomainAssociationResource", {
domainName: "string",
serviceArn: "string",
enableWwwSubdomain: false,
region: "string",
});
type: aws:apprunner:CustomDomainAssociation
properties:
domainName: string
enableWwwSubdomain: false
region: string
serviceArn: string
CustomDomainAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomDomainAssociation resource accepts the following input properties:
- Domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - Service
Arn string - ARN of the App Runner service.
- Enable
Www boolSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - Service
Arn string - ARN of the App Runner service.
- Enable
Www boolSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- domain_
name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - service_
arn string - ARN of the App Runner service.
- enable_
www_ boolsubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- domain
Name String - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - service
Arn String - ARN of the App Runner service.
- enable
Www BooleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - service
Arn string - ARN of the App Runner service.
- enable
Www booleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- domain_
name str - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - service_
arn str - ARN of the App Runner service.
- enable_
www_ boolsubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- domain
Name String - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - service
Arn String - ARN of the App Runner service.
- enable
Www BooleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomDomainAssociation resource produces the following output properties:
- Certificate
Validation List<CustomRecords Domain Association Certificate Validation Record> - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - Dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- Certificate
Validation []CustomRecords Domain Association Certificate Validation Record - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - Dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate_
validation_ list(object)records - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns_
target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation List<CustomRecords Domain Association Certificate Validation Record> - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target String - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation CustomRecords Domain Association Certificate Validation Record[] - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate_
validation_ Sequence[Customrecords Domain Association Certificate Validation Record] - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns_
target str - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation List<Property Map>Records - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target String - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
Look up Existing CustomDomainAssociation Resource
Get an existing CustomDomainAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CustomDomainAssociationState, opts?: CustomResourceOptions): CustomDomainAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_validation_records: Optional[Sequence[CustomDomainAssociationCertificateValidationRecordArgs]] = None,
dns_target: Optional[str] = None,
domain_name: Optional[str] = None,
enable_www_subdomain: Optional[bool] = None,
region: Optional[str] = None,
service_arn: Optional[str] = None,
status: Optional[str] = None) -> CustomDomainAssociationfunc GetCustomDomainAssociation(ctx *Context, name string, id IDInput, state *CustomDomainAssociationState, opts ...ResourceOption) (*CustomDomainAssociation, error)public static CustomDomainAssociation Get(string name, Input<string> id, CustomDomainAssociationState? state, CustomResourceOptions? opts = null)public static CustomDomainAssociation get(String name, Output<String> id, CustomDomainAssociationState state, CustomResourceOptions options)resources: existingCustomDomainAssociation: type: aws:apprunner:CustomDomainAssociation get: id: ${id}import {
to = aws_apprunner_custom_domain_association.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state CustomDomainAssociationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CustomDomainAssociationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state CustomDomainAssociationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state CustomDomainAssociationState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Certificate
Validation List<CustomRecords Domain Association Certificate Validation Record> - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - Dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- Domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - Enable
Www boolSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Service
Arn string - ARN of the App Runner service.
- Status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- Certificate
Validation []CustomRecords Domain Association Certificate Validation Record Args - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - Dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- Domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - Enable
Www boolSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Service
Arn string - ARN of the App Runner service.
- Status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate_
validation_ list(object)records - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns_
target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- domain_
name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - enable_
www_ boolsubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service_
arn string - ARN of the App Runner service.
- status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation List<CustomRecords Domain Association Certificate Validation Record> - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target String - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- domain
Name String - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - enable
Www BooleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn String - ARN of the App Runner service.
- status String
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation CustomRecords Domain Association Certificate Validation Record[] - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target string - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- domain
Name string - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - enable
Www booleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn string - ARN of the App Runner service.
- status string
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate_
validation_ Sequence[Customrecords Domain Association Certificate Validation Record Args] - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns_
target str - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- domain_
name str - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - enable_
www_ boolsubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service_
arn str - ARN of the App Runner service.
- status str
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
- certificate
Validation List<Property Map>Records - Set of certificate CNAME records used for this domain name. See
certificateValidationRecordsBlock below for more details. - dns
Target String - App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
- domain
Name String - Custom domain endpoint to association. Specify a base domain e.g.,
example.comor a subdomain e.g.,subdomain.example.com. Must not end with a trailing period.enableWwwSubdomainmust be set tofalsewhen using a wildcard domain. - enable
Www BooleanSubdomain - Whether to associate the subdomain with the App Runner service in addition to the base domain. Defaults to
true. Must be set tofalsewhendomainNameis a wildcard domain. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- service
Arn String - ARN of the App Runner service.
- status String
- Current state of the certificate
CNAMErecord validation. It should change toSUCCESSafter App Runner completes validation with your DNS.
Supporting Types
CustomDomainAssociationCertificateValidationRecord, CustomDomainAssociationCertificateValidationRecordArgs
Import
Using pulumi import, import App Runner Custom Domain Associations using the domainName and serviceArn separated by a comma (,). For example:
$ pulumi import aws:apprunner/customDomainAssociation:CustomDomainAssociation example example.com,arn:aws:apprunner:us-east-1:123456789012:service/example-app/8fe1e10304f84fd2b0df550fe98a71fa
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi