Examples of golden paths for internal development platforms - AWS Prescriptive Guidance

Examples of golden paths for internal development platforms

Serverless workloads

Development

Application design and deployment

Operations

  • Enable API Gateway access logs.

  • Log the API Gateway request ID, the extended request ID, and the Lambda request ID.

  • Use structured logs for Lambda functions, preferably in JSON format.

  • Emit logs to standard output (stdout) instead of calling the CloudWatch Logs API.

  • Use AWS Lambda Powertools to implement serverless best practices.

  • Set your log retention period according to your organization's requirements.

  • Enable CloudWatch Lambda Insights to collect, aggregate, and summarize diagnostic information, such as cold starts. This can help you isolate and quickly resolve issues with your Lambda functions.

  • In CloudWatch, use Errors, Throttles, ProvisionedConcurrencySpilloverInvocations, and Duration metrics to monitor your Lambda functions. For more information, see Working with Lambda function metrics.

  • In CloudWatch, use 4xx error codes, 5xx error codes, and latency metrics to monitor your APIs.

  • Use AWS X-Ray to collect data about requests that your application serves. For applications that use distributed components and services, this helps you quickly identify issues and opportunities for optimization.

Amazon Elastic Container Service (Amazon ECS)

Development

Application design and deployment

Operations

  • Use AWS Fargate because it provides a managed way to containerize your workload without having to manage servers or clusters of Amazon Elastic Compute Cloud (Amazon EC2) instances.

  • Use blue/Green deployment with AWS CodeDeploy.

  • Use Amazon CloudWatch Container Insights to collect, aggregate, and summarize metrics and logs from your containerized applications and microservices.

  • Enable the FireLens for Amazon ECS log driver and use the AWS for Fluent Bit sidecar container to improve performance and redirect log streams to separate locations, such as Amazon Simple Storage Service (Amazon S3) or CloudWatch log groups.

Additional resources

Amazon Elastic Kubernetes Service (Amazon EKS)

Development

Application design and deployment

Operations

Additional resources