Skip to content

skorfmann/cdktf-container-demo

Repository files navigation

Terraform CDK Demo

A Terraform CDK demo for a HashiCorp Twitch stream by @onlydole, @build1point0 and @skorfmann.

Description

It'll build and push a Docker image out of the ./app folder and use that to spin up a Faragate service. Any change in the ./app folder will trigger a new deployment on the next cdktf deploy.

There's no Load Balancer or other staticly accessible endpoint, that's something to add in one of the next iterations. This means, in order to access the running Fargate task, you'll have to find the IP Address of that task via the AWS Console or the AWS CLI.

Prerequisites

  • Node >= 10.12
  • Terraform CLI >= 0.12
  • Docker

Setup

yarn install

Deployment

Assumes valid AWS credentials in ENV:

cdktf deploy