Provides an AppSync API Association.
resource "aws_appsync_domain_name_api_association" "example" {
api_id = aws_appsync_graphql_api.example.id
domain_name = aws_appsync_domain_name.example.domain_name
}
This resource supports the following arguments:
api_id
- (Required) API ID.domain_name
- (Required) Appsync domain name.This resource exports the following attributes in addition to the arguments above:
id
- Appsync domain name.In Terraform v1.5.0 and later, use an import
block to import aws_appsync_domain_name_api_association
using the AppSync domain name. For example:
import {
to = aws_appsync_domain_name_api_association.example
id = "example.com"
}
Using terraform import
, import aws_appsync_domain_name_api_association
using the AppSync domain name. For example:
% terraform import aws_appsync_domain_name_api_association.example example.com