During this video, we'll explore how you can build a "serverless" (no infrastructure required) solution that gathers high-resolution metrics into the Amazon CloudWatch service.
Although this video will use an ECS cluster as an example scenario, you can reuse this technique to gather metrics from any service with a public API.
The solution will consist of:
1. Lambda Function - a Python 3 function that gathers the custom metric from Elastic Container Service (ECS)
2. Step Function - a workflow that controls the execution of the Lambda function, every five seconds, for a one-minute period
3. CloudWatch Event Rule - kicks off the AWS Step Function once per minute
You'll also need to make sure that you have Identity & Access Management (IAM) Roles configured for each of the three resources listed above. The IAM Role, configured on each resource, gives it permission to perform certain actions against other resources in your AWS account.
AWS Lambda: https://aws.amazon.com/lambda/
AWS Step Functions: https://aws.amazon.com/step-functions/
Amazon CloudWatch Events: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html
Microsoft Visual Studio Code: https://code.visualstudio.com/
AWS Tools for PowerShell: https://aws.amazon.com/documentation/powershell/
AWS PowerShell Module: https://www.powershellgallery.com/items?q=awspowershell
PowerShell Core Edition: https://github.com/PowerShell/PowerShell/
Producer: Trevor Sullivan
Website: https://trevorsullivan.net/
Twitter: https://twitter.com/pcgeek86
Gab: https://gab.ai/trevors
Amazon Web Services, the “Powered by AWS” logo, [and name any other AWS Marks used in such materials] are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.
#AWS #cloud
2 Comments