Jemesson / tdc-cdktf-k8s-app

Terraform CDK Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform CDK Application

Application is written in TypeScript to provision an EKS cluster with three Availability Zones.

Topics:

  1. Summary
  2. Setup
  3. Deploy
  4. Stack
  5. References

Summary

The Cloud Development Kit for Terraform (CDKTF) enables the utilization of programming languages for defining and provisioning infrastructure.

Setup

Install project dependencies

npm install

And then, get the providers and modules used in the project running:

npm run get

Terraform Cloud

Create an account in Terraform cloud, with an organization, with the given workspace: tdc-cdktf-k8s-app.

Create environment variables:

export TF_CLOUD_ORGANIZATION=YOUR_TERRAFORM_ORG
export TF_CLOUD_WORKSPACE=YOUR_CLOUD_WORKSPACE

Deploy

Generate Terraform JSON config. Creates an auto-generated directory cdktf.out

npm run synth

Deploy in Dev:

npm run dev

Deploy in Staging:

npm run staging

Deploy in Production:

npm run prod

Stack

References

  1. Resilience patterns
  2. AWS Resilience Hub
  3. Constructs

About

Terraform CDK Application


Languages

Language:TypeScript 54.4%Language:JavaScript 45.6%