CloudWatch Application Signals via OpenTelemetry on Fargate and Lambda
This project demonstrates how to run two simple Node.js apps using Fargate via ECS and AWS Lambda with SST v3 to showcase CloudWatch's Application Signals.
Getting Started
To run this application, follow these steps:
- Ensure you have Node.js installed on your system.
- Clone this repository to your local machine.
- Install the dependencies by running
pnpm iin the project root directory. - Provision the infrastructure via
pnpm run sst:deploy:dev. - Invoke either ECS or Lambda via the provided NX commands, e.g.
INVOKE_PATH=/lambda pnpm run invoke:ecs:dev - Open the CloudWatch console to explore your Application Map!
Important: Cost Considerations
⚠️ Warning: This project spins up Fargate tasks that remain running and will incur ongoing costs (approximately $7-$10 per month, not including CloudWatch charges).
To avoid unexpected charges, remove all resources when done by running:
pnpm run sst:remove:dev
Learn More
For more AWS fundamentals content and resources:
- Visit our blog at awsfundamentals.com/blog
- Check out our other projects on GitHub at awsfundamentals-hq