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

Allow GetFunctionConfiguration action for Optimizer function (autoOptimize) #205

Closed meldo8 closed 1 year ago

meldo8 commented 1 year ago

Lack of this Action (lambda:GetFunctionConfiguration) doesn't allow to use "autoOptimize": true in CI pipeline.

The Optimizer is not allowed to retrieve the Lambda config, and thus it can not change the Lambda parameters: User: [serverlessrepo-aws-lambda-power-tuni-optimizerRole ARN] is not authorized to perform: lambda:GetFunctionConfiguration on resource: [lambda ARN] because no identity-based policy allows the lambda:GetFunctionConfiguration action

The error in Step Functions looks like this: image

alexcasalboni commented 1 year ago

Thanks for contributing, @meldo8 🙏 🚀