alexcasalboni / aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Apache License 2.0
5.27k stars 362 forks source link

Adds ability to use terraform module directly from GitHub repository #244

Open tknisch opened 2 months ago

tknisch commented 2 months ago

When you use an existing terraform project and you want to include the aws-lambda-power-tuning you have to clone/download the repository and copy the files.

Another, easier solution is to directly reference the remote directory. For this, some paths has to be changed. Now, both solutions will work.

Remote inclusion will look like:

module "aws-lambda-power-tuning" {
  source = "git@github.com:alexcasalboni/aws-lambda-power-tuning//terraform/module"
  account_id = data.aws_caller_identity.current.account_id
}
alexcasalboni commented 2 months ago

Hi @tknisch 👋 thanks for reaching out 🙏

Good news: we've been working on this already 🎉

Here's a temporary module, which we're planning to move to an official AWS account: https://registry.terraform.io/modules/sfloresk/lambda-power-tuning/aws/latest

CC @sfloresk