Application Redeployment¶
The redeploy-app.sh script automates building container images, pushing to ECR, and triggering service redeployments.
Prerequisites¶
- AWS CLI configured with credentials
- Container runtime: Docker (recommended), Finch, or Podman
src/cdk/.envwithAWS_REGIONandAWS_ACCOUNT_ID- Deployed One Observability Demo infrastructure
Usage¶
# Auto-detect container tool
./src/cdk/scripts/redeploy-app.sh
# Specify a tool
./src/cdk/scripts/redeploy-app.sh docker
./src/cdk/scripts/redeploy-app.sh finch
The script prompts you to:
- Select the application to redeploy
- Select the target platform (amd64 or arm64)
- For ECS apps: select cluster and service
- For EKS apps: follow the provided kubectl instructions
Available Applications¶
| Application | Host | Description |
|---|---|---|
| payforadoption-go | ECS | Payment processing (Go) |
| petlistadoption-py | ECS | Pet listing (Python/FastAPI) |
| petsearch-java | ECS | Pet search (Java/Spring Boot) |
| petsite-net | EKS | Frontend (.NET) |
| petfood-rs | ECS | Food catalog (Rust/Axum) |
| petfoodagent-strands-py | AgentCore | AI agent (container build only) |
Monitoring ECS Deployments¶
# Check service status
aws ecs describe-services --cluster <cluster> --services <service>
# Watch deployment events
aws ecs describe-services --cluster <cluster> --services <service> \
--query 'services[0].events[0:5]' --output table