AWS SAM now supports Amazon API Gateway Custom Domain Names for private REST APIs
Share
Services
[AWS Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) (AWS SAM) now supports custom domain names for private REST APIs feature of [Amazon API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html). Developers building serverless applications using SAM can now seamlessly incorporate custom domain names for private APIs directly in their SAM templates, eliminating the need to configure custom domain names separately using other tools.
API Gateway allows you to create a custom domain name, like private.example.com, for your private REST APIs, enabling you to provide API callers with a simpler and intuitive URL. With a private custom domain name, you can reduce complexity, configure security measures with TLS encryption, and manage the lifecycle of the TLS certificate associated with your domain name. AWS SAM is a collection of open-source tools (e.g. SAM, SAM CLI) that make it easy for you to build and manage serverless applications through the authoring, building, deploying, testing, and monitoring phases of your development lifecycle. This launch enables you to easily configure custom domain names for your private REST APIs using SAM and[ SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/using-sam-cli.html).
To get started, update SAM CLI to the latest version and modify your SAM template to set the EndpointConfiguration to PRIVATE and specify a policy document in the Policy field in the Domain property of the _AWS::Serverless::Api_ resource. SAM will then automatically generate _DomainNameV2_ and _BasePathMappingV2_ resources under _AWS::Serverless::Api._ To learn more, visit the [AWS SAM documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html). You can learn more about custom domain name for private REST APIs in [API Gateway blog post](https://aws.amazon.com/blogs/compute/implementing-custom-domain-names-for-private-endpoints-with-amazon-api-gateway/).
What else is happening at Amazon Web Services?
Read update
Services
Share
Prompt Optimization in Amazon Bedrock now generally available
about 7 hours ago
Services
Share
Read update
Services
Share
AWS announces upgrades to Amazon Q Business integrations for M365 Word and Outlook
about 11 hours ago
Services
Share
AWS CodeBuild adds support for specifying EC2 instance type and configurable storage size
about 11 hours ago
Services
Share