Giter Site home page Giter Site logo

infrastructure's Introduction

Terraform

This repo makes heavy use of Hashicorp Terraform.

The state file for this repo is located in an S3 bucket.

Required state

Before running this against an account to setup, you will need

  • S3 bucket to keep the state file for Terraform
  • An IAM user with valid credentials to set up everything

Resources

This is a breif summary of the resources contained in this repo and why they exist.

Network

Contains a basic VPC configuration

Includes an internal DNS zone Default SSH security group to be used around other infrastructure All the routes and network ACL's needed to make the rules below...

Subnets

  • Reserved - To be used by networking appliances if needs change.
  • Sandbox - Used for things like Packer builds. No access to other subnets
  • Web - Used for web sites and the Discord Bot
  • Game Server - Used for all the game servers. This is made purposely large just in case
  • Database - Used for databases. Not accessible to or from the internet. Game servers and Web can access this subnet privately

Game Servers

Contains all the infrastructure peices for running the TF2 game servers

Includes:

  • IAM policies for the EC2 instances
  • An EC2 Launch Template, to make it easy for API's to launch these servers
  • Security Groups for TF2
  • An S3 bucket to store custom TF2 maps. This is a public static site

One limitation I can't get around is that the launch template seems to want to have a static image and has no ability to find the latest of a particular tag. It is up the API launching these instances to find that. Other than that, there should be no need for any other state.

Automation

AWS accounts can be messy if you're not diligent about keeping it tidy.

The automation in this module is basically to keep things tidy.

This will pickup changes made to the source code locally, and upload it to S3 and update the lambda functions accordingly. This is very simliar in concept to AWS SAM, except without using Cloudformation Transforms.

Includes:

  • Daily running lambda functions (easily configurble) that will clean up old AMI's.
  • More to come...
  • IAM polcies

Monitoring

This simply contains an ELK stack + Grafana

Includes:

  • AWS Elastic Search / Kibana
  • Launch Template for Grafana
  • Security Groups for both
  • IAM policies for both

infrastructure's People

Contributors

p-hennessy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.