How littlemex/aws-samples works
• AWS Amplify & Frontend Apps:
– Represent the “amplify/next-amplified” project as a Next.js frontend application that uses AWS Amplify. Show components such as the Next.js pages, API routes (found in pages/api), and the associated Amplify backend configurations.
• AWS CDK Samples:
– Several subdirectories under “cdk” contain multiple stacks using TypeScript and even Go (e.g. “cdk-lang-typescript-apigateway-lambda-nodejs-sample”, “cdk-lang-typescript-lambda-go-sample”, “cdk-split-files-sample”, and EC2 examples).
• Machine Learning Projects:
– Under “machinelearning” you have several patterns. For instance:
– The “ai-gateway” project demonstrates an AppSync pattern with Lambda functions and may include GraphQL schemas.
– “litellm-server”, Sagemaker examples, and DVC examples indicate sample pipelines that use different ML services and data versioning.
– Represent these as separate modules showing data inputs (S3 or data sources), model inference endpoints (Sagemaker or custom inference services), and data processing layers.
• Serverless Projects:
– The “serverless” directory features API handlers and configurations for a serverless deployment pattern using AWS Lambda and API Gateway.
– Show these as serverless functions triggered by API calls, with their configuration files (serverless_dev.yml, api YAML files) indicating deployment.
• Workshop Materials:
– Under “workshops” there are multiple workshop examples (e.g., “ai-coding-workshop”, “cdk-workshop”). Treat these as guided sample projects that illustrate full-stack, serverless, or ML-based architectures.
Relationships and Interactions
– For CDK samples, show deployment flows and resource interactions such as Lambdas invoking other services (API Gateway, CloudWatch, etc.).
– In serverless and workshop projects, indicate how requests route through API Gateways and trigger Lambda handlers.
Architectural Patterns and Design Principles
• Infrastructure-as-Code (CDK) approach in many directories by drawing “stacks” or modules that represent code-defined resources.
• For the Amplify application, show the separation of concerns between the frontend (Next.js, static assets) and backend (Amplify-managed services).
• For machine learning, illustrate the pipeline stages: data ingestion, preprocessing, model inference, and postprocessing.
Relevant AWS Services and Technologies
• Where applicable, annotate components with the AWS service they represent – such as AWS Amplify, AWS Lambda, API Gateway, EC2, S3, VPC, CloudWatch, and Sagemaker.
• Language or framework usage, e.g., “Next.js,” “TypeScript,” “Go,” “Python,” and Docker, to indicate how each sample implements its functionality.
• For workshop projects, if they include Docker Compose or Terraform (as seen in the “eks” directory with Terraform files), add those as part of the deployment or orchestration layer.