-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simplified deploy_backend.sh steps for DEMO
- Loading branch information
1 parent
8e815b7
commit e175f09
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
#################################################################################################### | ||
# STEPS EXECUTED TO DEPLOY THE BACKEND PROJECT (SIMPLIFIED WITHOUT POETRY TOOL) | ||
#################################################################################################### | ||
|
||
# Install Python dependencies with Poetry | ||
pip install -r requirements.txt | ||
|
||
# Configure deployment environment | ||
export AWS_DEFAULT_REGION=us-east-1 | ||
export DEPLOYMENT_ENVIRONMENT=prod | ||
|
||
# Initialize CDK (Cloud Development Kit) | ||
ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text) | ||
cdk bootstrap aws://${ACCOUNT_ID}/us-east-1 | ||
|
||
# Deploy the backend | ||
cdk deploy --require-approval never |