Provides an AppSync Domain Name.
resource "aws_appsync_domain_name" "example" {
domain_name = "api.example.com"
certificate_arn = aws_acm_certificate.example.arn
}
This resource supports the following arguments:
certificate_arn
- (Required) ARN of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate. The certifiacte must reside in us-east-1.description
- (Optional) A description of the Domain Name.domain_name
- (Required) Domain name.This resource exports the following attributes in addition to the arguments above:
id
- Appsync Domain Name.appsync_domain_name
- Domain name that AppSync provides.hosted_zone_id
- ID of your Amazon Route 53 hosted zone.In Terraform v1.5.0 and later, use an import
block to import aws_appsync_domain_name
using the AppSync domain name. For example:
import {
to = aws_appsync_domain_name.example
id = "example.com"
}
Using terraform import
, import aws_appsync_domain_name
using the AppSync domain name. For example:
% terraform import aws_appsync_domain_name.example example.com