Resource: aws_appsync_domain_name

Provides an AppSync Domain Name.

Example Usage

resource "aws_appsync_domain_name" "example" {
  domain_name     = "api.example.com"
  certificate_arn = aws_acm_certificate.example.arn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Import

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