Skip to content
Terraform code to create AWS infrastructure for
HCL Smarty
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

This repo creates all infrastructure for It deploys docker containers to an ECS cluster.


  • Usually I wouldn't couple infrastructure and software deployment together, but in this case it's easy and works for now.
  • I am following hashicorp best-practices, and also practices I have developed working on large terraform deployments.


  • VPC
    • Multi AZ public and private subnets
  • NAT Gateway
    • public IPs
    • Route table association
  • ECS
    • Cluster
    • Service
      • Task definition
  • ALB
    • Route definitions
    • Listeners


├── modules
└── providers
    └── aws
        ├── terraform.tfstate


This folder holds project specific modules that are used once or many times. To enable this, all resources in the module must be uniquely named, so that multiple instances can exist at the same time to enable blue-green deployments.


This folder holds the main code that includes terraform HCL files that defines the infrastructure at its highest level, all project specific details must be in variables.

You can’t perform that action at this time.