All Projects → 0x4447 → 0x4447_product_secure301

0x4447 / 0x4447_product_secure301

Licence: MIT license
🚧 A stack that will allow you to redirect one domain over HTTPS to another.

Projects that are alternatives of or similar to 0x4447 product secure301

0x4447 product s3 email
📫 A serverless email server on AWS using S3 and SES
Stars: ✭ 2,905 (+19266.67%)
Mutual labels:  0x4447
0x4447-cli-node-grapes
🍇 This is a small framework to make it easier to work with AWS CloudFormation files.
Stars: ✭ 43 (+186.67%)
Mutual labels:  0x4447
0x4447 product answering machine
☎️ An automated answering machine build on top of Amazon Connect
Stars: ✭ 38 (+153.33%)
Mutual labels:  0x4447

Secure301

The secure301 stack is a simple solution to an annoying problem - it allows you to have HTTPS redirects with a 301 message. To achieve this the stack utilizes the API Gateway.

When deploying the stack you have to only manually make a SSL Certificate using the AWS Certificate Manager service, provide all the details in the deployment phase, and you'll get a working redirect.

We chose to use API Gateway for this because using CloudFront in conjunction with S3 is very slow to work with. It take CloudFront 20 min to deploy the resources across all the regions, where as API Gateway is also deliver over CloudFront, but the deployment is instant. Since CloudFront in this case is managed by AWS itself.

The stack was designed to handle one redirectsion per deployment to keep the solution simple and straight forward.

DISCLAIMER!

This stack is available to anyone at no cost, but on an as-is basis. 0x4447, LLC. is not responsible for damages or costs of any kind that may occur when you use the stack. You take full responsibility when you use it.

How to deploy

All you need to do to deploy this stack is click the button to the left and follow the instructions that CloudFormation provides in your AWS Dashboard. Alternatively you can download the CF file from here.

What will deploy?

  • 1x API Gateway
  • 1x API Gateway Domain

Manual work

  • Prior to deploying the stack you have to create a SSL Cert for the domain you want to redirect from. Using the Certificate Manager service.
  • Once deployed you have to take the geenral API Gateway domian and update your DNS record.

Pricing

How to generate the CloudFormation file

This repo was build using the Grapes Frameworks. First you need to install the framework:

sudo npm install -g @0x4447/grapes

Then, go inside this repo and run this command:

grapes -s .

This will create a CloudFormation.json file in the root dir of the repo which you can upload to AWS.

The End

If you enjoyed this project, please consider giving it a 🌟. And check out our 0x4447 GitHub account, where you'll find additional resources you might find useful or interesting.

Sponsor 🎊

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].