Base Path Mapping
Connects a custom domain name registered via aws.apigateway.DomainName with a deployed API so that its methods can be called via the custom domain name.
Import
For a non-root base_path: For a non-root base_path and a private custom domain name: Using pulumi import, import aws_api_gateway_base_path_mapping using the domain name and base path or domain name, base path and domain name ID (for private custom domain names). For example: For an empty base_path or, in other words, a root path (/):
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example example.com/Content copied to clipboard
For a non-root base_path:
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example example.com/base-pathContent copied to clipboard
For a non-root base_path and a private custom domain name:
$ pulumi import aws:apigateway/basePathMapping:BasePathMapping example api.internal.example.com/base-path/abcde12345Content copied to clipboard