23 lines
533 B
Bash
Executable File
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)"
|