Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

anoopdevopseng/cdktf-stack

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdktf-stack

Requirements

  • Python 3.13
  • cdktf version: 0.21.0
  • cdktf-cli: 0.21.0

Setup Instructions

Linux/macOS

1. Install Dependencies

yes | sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.13
sudo apt-get install pipenv -y
npm install --global cdktf-cli@0.21.0

2. Set Environment Variables

export PIPENV_VENV_IN_PROJECT=1
export PIPENV_IGNORE_VIRTUALENVS="1"

3. Install Python Dependencies

pipenv --python=/bin/python3.13 install

4. Download Providers

cdktf get --force

5. Run CDKTF Commands

ENV=dev cdktf synth
ENV=dev cdktf plan
ENV=dev cdktf deploy --auto-approve

# Or for other environments:
ENV=preprod cdktf synth
ENV=prod cdktf synth

Windows (PowerShell)

1. Set Environment Variables

$env:PIPENV_VENV_IN_PROJECT=1
$env:PIPENV_IGNORE_VIRTUALENVS = "1"

2. Install Python Dependencies

pipenv install

3. Download Providers

cdktf get --force

4. Run CDKTF Commands

$env:ENV = "dev"; cdktf synth
$env:ENV = "dev"; cdktf plan
$env:ENV = "dev"; cdktf deploy --auto-approve

# Or for other environments:
$env:ENV = "preprod"; cdktf synth
$env:ENV = "preprod"; cdktf plan
$env:ENV = "preprod"; cdktf deploy --auto-approve

$env:ENV = "prod"; cdktf synth
$env:ENV = "prod"; cdktf plan
$env:ENV = "prod"; cdktf deploy --auto-approve

5. Remove PowerShell Variable

Remove-Item Env:ENV

Environments

Your environment files should be placed under the envs folder:

envs/
  dev.yaml
  preprod.yaml
  prod.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.