Skip to content

Latest commit

 

History

History
 
 

kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

python-kubernetes

A CDK for Terraform application in Python to demonstrate use of the Kubernetes Provider according to the HashiCorp Learn Guide.

Usage

Install Pipenv using Homebrew by running:

$ brew install pipenv

You can install Pipenv by visiting the website.

Install project dependencies

pipenv install

Generate CDK for Terraform constructs for Terraform providers and modules used in the project.

cdktf get

You can now edit the main.py file if you want to modify any code.

Compile and generate Terraform configuration

cdktf synth

The above command will create a folder called cdktf.out that contains all Terraform JSON configuration that was generated.

Run cdktf-cli commands

cdktf diff
cdktf deploy