LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

deploying-custom-domain-rest-api

Deploys a Regional REST API with a custom domain name, a Lambda backend function, and a request-based Lambda authorizer using AWS CLI. Covers ACM certificate provisioning, API Gateway REST API creation, Lambda function deployment, request authorizer setup, custom domain configuration, base path mapping, and Route 53 DNS record creation. Trigger keywords: custom domain, REST API, Lambda, Route 53, API Gateway, regional endpoint, request authorizer, base path mapping.

2,225stars216forksUpdated 8/5/2026
DevOps & CI/CDCloud Infrastructure#devops#lambda#infrastructure#serverless#aws#api-gateway

Security Assessment

Safe(91/100)
Security Score91/100

About deploying-custom-domain-rest-api

This skill is a standard operating procedure for deploying a Regional Amazon API Gateway REST API fronted by a custom domain name, backed by a Lambda function, and protected by a request-based Lambda authorizer, all driven through the official AWS CLI. It solves the fiddly, multi-service setup of wiring together ACM certificates, IAM roles, Lambda functions, API Gateway resources, custom domains, base path mapping, and Route 53 DNS into one guided flow.

The procedure collects required parameters up front (custom domain, region, hosted zone ID, optional existing certificate ARN, and stage name), verifies dependencies such as the AWS CLI, python3, sed, and Node v22+, and retrieves the account ID before doing anything else. It then requests and DNS-validates an ACM certificate, creates two least-privilege IAM execution roles from a trust policy scoped by an aws:SourceAccount condition, deploys the authorizer and backend Lambda functions, configures the REST API with the custom authorizer, sets up the TLS 1.2 custom domain and base path mapping, and creates a Route 53 A-alias record. Throughout, it explains each step and the tool being called, respects the user's decision to abort, and explicitly warns that the demo authorization values (headerValue1, queryValue1, stageValue1) are hardcoded and not production-safe, pointing to AWS Secrets Manager or Parameter Store instead.

Target users are cloud and serverless engineers who want a repeatable, security-conscious way to stand up an authenticated custom-domain REST API on AWS. It provisions real, billable infrastructure using official AWS tooling and IAM best practices rather than performing any risky or unofficial operations.

FAQ

What AWS services does this deploy?

A Regional API Gateway REST API, a Lambda backend, a request-based Lambda authorizer, an ACM certificate, IAM roles, a custom domain with TLS 1.2, base path mapping, and a Route 53 A-alias record.

What are the prerequisites?

The AWS CLI (with configured credentials), python3, sed, and Node v22+; it verifies these and warns before proceeding if any are missing. Route 53 hosted zone and a hosted zone ID are also required.

Does it support private endpoints?

No. It covers Regional endpoints only; private endpoints would require VPC endpoint configuration, which it tells the user is out of scope.

Are the authorization values production-ready?

No. It uses hardcoded demo values and explicitly instructs the user to move to AWS Secrets Manager or Systems Manager Parameter Store for production credentials.

How are IAM permissions handled?

It creates dedicated execution roles from a trust policy scoped with an aws:SourceAccount condition to the user's account and attaches the AWS-managed basic execution policy.

All Files

6 files
scripts/lambda-trust-policy.json0.3 KB
View
scripts/validate.sh1.9 KB
View
SKILL.md18.8 KB
View
scripts/authorizer.mjs3.5 KB
View
scripts/dns-record.json0.3 KB
View
scripts/example_function.mjs0.4 KB
View

Install deploying-custom-domain-rest-api

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

aws/agent-toolkit-for-aws

Related Skills

dbt-sf-to-bq-translator

21,076

build-models

102

html-prototype

3,588

doc

448