AWS::Amplify::DomainThe AWS::Amplify::Domain resource allows you to connect a custom domain to your app.
7 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
AppId | string | RequiredCreate-only |
DomainName | string | RequiredCreate-only |
SubDomainSettings | Array<SubDomainSetting> | Required |
AutoSubDomainCreationPatterns | Array<string> | |
AutoSubDomainIAMRole | string | |
CertificateSettings | CertificateSettings | Write-only |
EnableAutoSubDomain | boolean |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
Certificate | Certificate | - |
CertificateRecord | string | - |
DomainStatus | string | - |
StatusReason | string | - |
UpdateStatus | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Amplify::Domain
Resources:
MyResource:
Type: AWS::Amplify::Domain
Properties:
AppId: "my-appid"
DomainName: "my-domainname"
SubDomainSettings: []Permissions CloudFormation needs in your IAM role to manage this resource.
amplify:GetDomainAssociationamplify:CreateDomainAssociationroute53:ListHostedZonesroute53:ChangeResourceRecordSetsiam:PassRoleamplify:TagResourceamplify:GetDomainAssociationamplify:DeleteDomainAssociationroute53:ListHostedZonesiam:PassRoleamplify:ListDomainAssociationsiam:PassRoleamplify:ListTagsForResourceamplify:GetDomainAssociationroute53:ListHostedZonesiam:PassRoleamplify:ListTagsForResourceamplify:GetDomainAssociationamplify:UpdateDomainAssociationroute53:ListHostedZonesroute53:ChangeResourceRecordSetsiam:PassRoleamplify:ListTagsForResourceamplify:TagResourceamplify:UntagResourceOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AppIdDomainName