aws-asg-cloudfront

module
v0.0.0-...-e2b0996 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0

README

aws-asg-cloudfront

This project demonstrates how to combine cloudfront, EC2, route53 and auto scaling groups to build a scalable http service with any load balancers.

NOTE: This project is a work in progress, I am shaving a few yaks along way.

Why?

The reason I built this example is that application load balancers introduce an unnecessary layer of complexity and cost in cases were your already using a CDN such as cloudfront in front of your application.

Setup

To deploy this solution you need to set some environment variables.

export HOSTED_ZONE_NAME=example.com
export HOSTED_ZONE_ID=ZZZZZZZZZZZZZZ
export DESIRED_CAPACITY=2
# Unique identifier used to build hostname
export INTERNAL_SERVICE_ID=aaaaaaaaaaaa

Diagram

TODO

License

This project is released under Apache 2.0 license and is copyright Mark Wolfe.

Directories

Path Synopsis
cmd
asg-lifecycle-lambda/internal/events/ec2instance
Package ec2instance provides primitives to interact with the openapi HTTP API.
Package ec2instance provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL