https://github.com/skorfmann/cdktf-container-demo
A Terraform CDK demo
https://github.com/skorfmann/cdktf-container-demo
aws aws-ecr aws-ecs aws-fargate aws-vpc cdk cdktf terraform terraform-cdk
Last synced: 7 months ago
JSON representation
A Terraform CDK demo
- Host: GitHub
- URL: https://github.com/skorfmann/cdktf-container-demo
- Owner: skorfmann
- License: mpl-2.0
- Created: 2020-09-04T19:01:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T09:12:17.000Z (about 5 years ago)
- Last Synced: 2025-02-28T19:06:12.148Z (7 months ago)
- Topics: aws, aws-ecr, aws-ecs, aws-fargate, aws-vpc, cdk, cdktf, terraform, terraform-cdk
- Language: TypeScript
- Homepage:
- Size: 43.9 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform CDK Demo
A [Terraform CDK](https://cdk.tf) demo for a HashiCorp [Twitch stream](https://www.twitch.tv/videos/731362097) by [@onlydole](https://twitter.com/onlydole), [@build1point0](https://twitter.com/build1point0) and [@skorfmann](https://twitter.com/skorfmann).
## Description
It'll build and push a Docker image out of the [./app](./app) folder and use that to spin up a Faragate service. Any change in the [./app](./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
```