Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

ServerlessOpsIO/aws-serverless-url-redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aws-serverless-url-redirector

AWS API Gateway + Lambda service to redirect a web request to another location. Useful for handling redirects from https://example.com -> https://www.example.com.

Usage

Set the following variables when deploying this service

  • SLS_SERVICE_LOCATION: The DNS name this service will be handling requests for.
  • SLS_SERVICE_DOMAIN: Domain name of service's location. (Will use SLS_SERVICE_LOCATION if not set.)
  • SLS_REDIRECT_LOCATION: Domain to redirect requests to.
SLS_SERVICE_LOCATION=serverlessops.io SLS_REDIRECT_LOCATION=www.serverlessops.io sls deploy -v

NOTE: This service creates a Certificate Manager certificate and deploy will hold until the certificate is approved.

Releases

No releases published

Packages

No packages published

Languages