| Day | Task | Start Date | Completion Date | Resources |
|---|---|---|---|---|
| Monday | - In-depth research on AWS SAM: Understand template.yaml structure, SAM CLI commands, and how Serverless resources (Lambda, API Gateway) operate within SAM model.- Plan detailed migration strategy: Convert existing Lambda functions to SAM-compatible structure. - Study SAM local testing capabilities ( sam local invoke, sam local start-api). | 04/11/2024 | 04/11/2024 | AWS SAM Documentation, AWS Study Group |
| Tuesday | - Source Code Refactoring: Rewrite CRUD functionalities (Create/Read operations) using SAM patterns (Lambda handlers and API Gateway events). - Docker Integration: Install and configure Docker to ensure consistent Python runtime environment for sam build process.- Create Dockerfile for Lambda layer dependencies. - Workshop Activity: Create ECR repositories for Frontend (Next.js) and Backend (Spring Boot) container images. | 05/11/2024 | 06/11/2024 | Docker Documentation, SAM CLI, Workshop 5.4 |
| Wednesday | - Local Debugging and Testing: Execute sam local invoke to test individual Lambda functions.- Encountered critical issues in Local environment: Dependency conflicts, Python version mismatches, DynamoDB local connection problems. - Attempt to resolve local testing barriers through configuration adjustments. | 06/11/2024 | 07/11/2024 | SAM CLI Error Reports, Stack Overflow |
| Thursday | - Strategic Decision: Backend Team decided to adopt deploy-then-test strategy on actual AWS environment to overcome local debugging limitations, accepting calculated risk. - Focus on fixing configuration errors in template.yaml (resource definitions, IAM permissions, environment variables).- Validate SAM template syntax and resource dependencies. | 07/11/2024 | 08/11/2024 | CloudFormation Template Validator |
| Friday | - Successful Deployment: Executed sam deploy --guided and successfully deployed project to AWS environment.- Basic Verification: Tested created API endpoints using Postman/curl, confirming CRUD functionality is operational. - Document deployment process and configuration for team reference. - Workshop Activity: Build and push Docker images to ECR, create ECS Task Definitions and deploy ECS Services with Fargate. | 08/11/2024 | 08/11/2024 | AWS CloudFormation Deployment Logs, Workshop 5.4 |
sam build process uses correct Python version and dependencies.template.yaml with proper resource definitions and IAM permissions.Workshop Progress - ECS & Container Setup:
Key Takeaways: