A set of templates meant to work with Zero, the templated result is a ready to scale infrastructure boilerplate built on top of AWS EKS baked with all best practices we have accumulated.
The root folder is used for declaring parameters required by the templates, and Zero will gather the required parameters and parse the templates as individual repositories for user to maintain.
/ # file in the root directory is for initializing the user's repo and declaring metadata
|-- Makefile #make command triggers the initialization of repository
|-- zero-module.yml #module declares required parameters and credentials
|
| # files in templates become the repo for users
| templates/
| | # this makefile is used both during init and
| | # on-going needs/utilities for user to maintain their infrastructure
| |-- Makefile
| |-- terraform/
| | |-- bootstrap/ #initial setup
| | |-- environments/ #infrastructure setup
| | | |-- prod/
| | | |-- stage/
| |-- kubernetes
| | |-- terraform
| | | |-- environments #k8s-ultities
| | | | |-- prod/
| | | | |-- stage/
The Zero-aws-eks stack is designed with scalability and maintainability in mind, this repo is a series of templates indented to be filled in with modules parameters, and executed by zero This is a Zero module which sets up a hosting environment on AWS running Kubernetes. It will generate terraform output which describes the environment mapped in this architecture diagram.
Resource List: Link
Prerequisites
aws route53 list-hosted-zones
Optional Prerequisites
This is meant to be used with the zero
tool and not directly. See
the Zero repository for more
information. The tool will parse through configuration and fill in any
template variables which need to be encoded into the terraform configuration.
The codebase uses terraform validate as a basic sanity check, it uses
an example zero-project.yml fixture to fill-in the templates, then runs
terraform init
and terraform validate
against the templated out environment and modules.
The expected total monthly cost: $ 0.202 USD / hr or ~$150USD / month. The most
expensive component will be the EKS cluster as well as the instances that it
spins up. Costs will vary depending on the region selected but based on
us-west-2
the following items will contribute to the most of the cost of the
infrastructure:
EC2 instance sizing can be configured in templates/terraform/environments/stage/main.tf