Files
tf-aws-lambda-imageprocessing/scripts/deploy.sh
2026-02-22 05:37:03 +00:00

23 lines
533 B
Bash
Executable File

#!/bin/bash
set -e
echo "=== Deploying AWS Image Processing Infrastructure ==="
# Pre-deployment security checks
echo "Running security scans..."
./scripts/security_scan.sh
# Build Lambda package
./scripts/build_lambda.sh
# Deploy infrastructure
echo "Deploying Terraform..."
cd terraform
terraform init -input=false
terraform apply -auto-approve
echo ""
echo "=== Deployment Complete ==="
echo "Upload bucket: s3://$(terraform output -raw s3_bucket_name)"
echo "Security alerts: $(terraform output -raw security_alerts_topic)"