Skip to main content

Buzzerboy Architecture for Deploying Web Applications on AWS LightSail

Project description

AWS Infrastructure with CDKTF (Python)

This project uses the Cloud Development Kit for Terraform (CDKTF) with Python to define and deploy AWS infrastructure using named AWS profiles via ~/.aws/credentials and ~/.aws/config.


✅ Prerequisites

1. Install Required Tools

Make sure the following tools are installed:

  • Node.js (v16 or later)
  • npm
  • Terraform CLI
  • Python 3.7+
  • AWS CLI

macOS Example:

brew install node
brew install terraform
brew install python
brew install awscli

2. Install CDKTF CLI

npm install -g cdktf-cli

3a. Configure AWS CLI (Option 1 - Use AWS Provided Tooling)

aws configure --profile myprofile

This creates or updates the following files:

~/.aws/credentials:

[myprofile]
aws_access_key_id=YOUR_ACCESS_KEY
aws_secret_access_key=YOUR_SECRET_KEY

~/.aws/config:

[profile myprofile]
region=us-west-2
output=json

3b. Configure AWS CLI (Option 2 - Use Open Source AWS Login - Recommended)

3b - 1. Clone the code repo from Fahad Zain Jawaid

git clone https://github.com/fahadzainjawaid/awsIdentityTools

You can follow the ReadMe on the repo above to get latest usage and setup guides.


🚀 Getting Started

1. Install the package

pip install pip install BBAWSLightsailMiniV1a

2. Set Up Python Environment & Install Dependencies

python3 -m venv .venv
source .venv/bin/activate
export PIPENV_VERBOSITY=-1
pip install -r requirements.txt

3. Install AWS Provider Bindings

cdktf get

4. Synthesize Terraform Configuration

cdktf synth

5. Review the Plan

cdktf plan

6. Deploy the Infrastructure

cdktf deploy

7. Destroy the Infrastructure (if needed)

cdktf destroy

🛠 Useful Commands

Command Description
cdktf get Install provider bindings
cdktf synth Generate Terraform JSON config
cdktf plan Preview planned changes
cdktf deploy Deploy infrastructure to AWS
cdktf destroy Destroy deployed infrastructure

📁 .gitignore Suggestions

.venv/
cdktf.out/
.terraform/
__pycache__/
*.pyc

📝 Notes

  • To install additional Python packages:

    pip install <package>
    pip freeze > requirements.txt
    
  • To suppress pipenv verbosity in environments where pipenv is used:

    export PIPENV_VERBOSITY=-1
    

📚 References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

buzzerboyawslightsail-0.330.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buzzerboyawslightsail-0.330.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file buzzerboyawslightsail-0.330.1.tar.gz.

File metadata

  • Download URL: buzzerboyawslightsail-0.330.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.14.0

File hashes

Hashes for buzzerboyawslightsail-0.330.1.tar.gz
Algorithm Hash digest
SHA256 2f120bfc68e8967a81199354687e8f403eeade7682850a8013933b0cde1ef17c
MD5 e9156ec48e0238b60b9740a23339d3cb
BLAKE2b-256 fef6a56563fa0d75ecca405c584e0fd1594b673bce6f4f5847ce53d25171c36f

See more details on using hashes here.

File details

Details for the file buzzerboyawslightsail-0.330.1-py3-none-any.whl.

File metadata

File hashes

Hashes for buzzerboyawslightsail-0.330.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37219bdc712c9d3a590b769aa4cfc9363493be01f0071145a9658e41cdac827e
MD5 86a9d9e930c540f5120bf0c330bf6557
BLAKE2b-256 0b07ed2fc115483f6bbdb303ec3056a26873e51196fe501943efc5a552692537

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page