Serverless solutions like AWS Lambda have revolutionized the way we build and deploy applications. They usually run on shared infrastructure and do not provide a static fixed IP address.
AWS Lambda & API Gateway
When using AWS API Gateway with Lambda, it generates a dynamic URL that points to the Lambda function. If you want to use a custom domain name instead, you need to set it up using Route53 - AWS managed DNS service.
What if you don’t want to change your DNS provider? Cloudflare and other DNS providers are available for free and offer features like DDOS protection, unlimited bandwidth and more. ServerlessIP solves this by providing a static IP address.
- Simply, create a proxy, add a source domain name(root or subdomain) and point it to the dynamically generated URL.
- Update your DNS settings, create a new
A
record with the root or subdomain and point it to the proxy’s IP address. - In a few minutes, the API gateway can be accessed from the source URL you provided in rules.
Cloudflare Workers
Cloudflare Workers are a way to run a serverless application on Cloudflare’s global infrastructure. Using the steps mentioned above, you can access a Cloudflare Worker from any domain, even if it is not managed by Cloudflare!