skorfmann / cdktf-container-demo

A Terraform CDK demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Terraform CDK demo

License:Mozilla Public License 2.0


Languages

Language:TypeScript 99.0%Language:HTML 0.6%Language:Dockerfile 0.4%