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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bbawslightsailminiv1a-0.231.8.tar.gz.
File metadata
- Download URL: bbawslightsailminiv1a-0.231.8.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c02cb25f8de95b13f69e751374042b6fcbb9126a8cc75f858adc3f063c2b474
|
|
| MD5 |
82777b3f885b7d1c54d238ead3e4d46d
|
|
| BLAKE2b-256 |
b2caad31ff84dc3dacfde0b2ca477d7ac9b822f3bee133add2da31c6461a34af
|
File details
Details for the file bbawslightsailminiv1a-0.231.8-py3-none-any.whl.
File metadata
- Download URL: bbawslightsailminiv1a-0.231.8-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73e19f342bb81fa93adea1505c38636f754d1bcb51253628b3858739653c273a
|
|
| MD5 |
7f9f289f58ef35e2d4353a592482618f
|
|
| BLAKE2b-256 |
b7d014fe86a986636660c427893c8e3c74dd5934ddfc1af76d85ddb32c27f4c3
|