Giter VIP home page Giter VIP logo

https-static-site-cloudformation's Introduction

https-static-site-cloudformation

Cloudformation template for provisioning everything needed for a HTTPS static site

What

This repository contains a Cloudformation template and a script for provisioning:

It can be used to provision a Cloudformation stack which serves a static site from a custom domain with HTTPS.

For more details on what is this script is, you can read the blog post I wrote about it

How

Synopsis

./provision <root-domain-name> [<custom-bucket-name>]

Prerequisites

  • You'll need the aws-cli installed to run the provision script.
  • You'll need access to the AWS console to validate the TLS certificate.

Usage

Note: You'll have to do some manual steps in the AWS console while the certificate is provisioning

  1. Run the provision script with the domain name you're using for your static site.
    • For example, the domain name you're using is example.com, run ./provision "example.com"
    • You can optionally pass a second argument if you want a custom bucket name., e.g ./provision "example.com" "example.com-bucket"
  2. Open the AWS console and go to the Certificate Manager service
  3. Identify the new certificate that is being provisioned by Cloudformation (the status should be Pending validation), and expand the section
  4. In the Domains section, you will be able to expand each domain and click the Create record in Route53 button.
  5. It can take some time for the DNS record to propogate, but the Certificate should now be able to verify the domain.
  6. Wait for the script to finish (it might take a while).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.