github-copilot-resources / copilot-metrics-viewer

Tool to visualize the Copilot metrics provided via the Copilot Business Metrics API (current in public beta)
https://copilot-metrics-viewer-gthcc5cmd9ebf2ff.westeurope-01.azurewebsites.net/
MIT License
313 stars 156 forks source link

Support deploying as AWS Lambda #111

Open grossag opened 2 weeks ago

grossag commented 2 weeks ago

Not sure if this is at all in scope or anything you would like help with, but I wanted to file this to get your thoughts.

Does the architecture of this application lend itself to being able to be deployed to AWS Lambda? My company doesn't have much in terms of container infrastructure and instead is pushing things to AWS Lambda when possible. We use CloudFormation templates to do this with our probot apps, but I understand that this is instead a Vue application, so it may not be the same thing.

karpikpl commented 2 weeks ago

It's a static web app, so it could be deployed to S3 bucket (https://docs.aws.amazon.com/AmazonS3/latest/userguide/HostingWebsiteOnS3Setup.html)

when executed as static web app - tokens are exposed in the network traffic.

You can also deploy it as docker image, anywhere docker images can run (Kubernetes, container apps etc.) Lambda supports running custom images https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-types

If you can define a route that will serve files, it's going should work.