concept observability in category aws

This is an excerpt from Manning's book AI as a Service: Serverless machine learning with AWS.
The latest documentation on deploying and running the CI/CD pipeline is in the
QUICK_START.mddocument in the SLIC Starter repository. Once you have run all of the steps, your pipeline is ready. Every commit to the repository will trigger the source CodeBuild project and result in execution of the orchestrator pipeline. Figure 6.6 shows how this pipeline looks in the AWS CodePipeline Console.Here, we can clearly see the steps of the pipeline that have run. The current execution is in the “Approval” stage. This is a special stage that requires the user to review and click Approve in order to advance the pipeline. This gives us the chance to check and cancel any production deployment. The execution shown has successfully deployed to staging, and our test jobs have completed successfully. In the SLIC Starter, automated API integration tests and user interface end-to-end (E2E) tests are run in parallel against the public API and front end.
Once our system has been deployed to production, we need to understand what’s going on there. When things go wrong, we need to be able to troubleshoot and answer many questions about the state of the application. This brings us to observability, arguably the most important part of an effective production serverless deployment!
Our first way to inspect the CloudWatch logs is with the Serverless Framework CLI. Here, we’ll use
serverlesslogsto see the latest logs for thecreatefunction. The output is again piped topino-prettyfor readability:cd checklist-service serverless logs -f create --stage <STAGE> | pino-pretty # STAGE is one of dev, stg or prod