Skip to content

sfloresk/terraform-aws-lambda-power-tuning

Repository files navigation

🛑 This module is now deprecated - the official AWS lambda power tuning terraform module can be found at https://registry.terraform.io/modules/aws-ia/lambda-power-tuning/aws/latest 🛑

AWS Lambda Power Tuning Terraform module

Terraform module which deploys the Lambda power tuning solution

Usage

module "lambda-power-tuning" {
  source  = "sfloresk/lambda-power-tuning/aws"
  aws_account_id = "1234567890"
  aws_region = "us-west-2"
}
  

Examples

Requirements

Name Version
terraform >= 1.0

Providers

Name Version
aws >= 5.0

Modules

No modules.

Resources

Name Type
aws_sfn_state_machine.state-machine resource
aws_iam_role.analyzer_role resource
aws_iam_role.optimizer_role resource
aws_iam_role.executor_role resource
aws_iam_role.initializer_role resource
aws_iam_role.cleaner_role resource
aws_iam_role.sfn_role resource
aws_iam_policy.analyzer_policy data source
aws_iam_policy_attachment.execute-attach resource
aws_iam_policy.executor_policy resource
aws_iam_policy_attachment.executor-attach resource
aws_iam_policy.initializer_policy resource
aws_iam_policy_attachment.initializer-attach resource
aws_iam_policy.cleaner_policy resource
aws_iam_policy_attachment.cleaner-attach resource
aws_iam_policy.optimizer_policy resource
aws_iam_policy_attachment.optimizer-attach resource
aws_iam_policy.sfn_policy resource
aws_iam_policy_attachment.sfn-attach resource
aws_lambda_function.analyzer resource
aws_lambda_function.cleaner resource
aws_lambda_function.executor resource
aws_lambda_function.initializer resource
aws_lambda_function.optimizer resource
aws_lambda_layer_version.lambda_layer resource
null_resource.build_layer resource
archive_file.layer data source
archive_file.app data source

Inputs

Name Description Type Default Required
aws_account_id A map of additional tags to add to the autoscaling group string yes
aws_region The region that the AWS lambda power tuning app is going to be deployed string yes
lambda_function_prefix Prefix used for the names of Lambda functions, Step Functions state machines, IAM roles, and IAM policies. string lambda_power_tuning no
role_path_override IAM Role path to use for each Lambda function's role, instead of the default path /lambda_power_tuning/ (see variable lambda_function_prefix) string "" no
permissions_boundary ARN of the policy that is used to set the permissions boundary for the role. string null no
vpc_subnet_ids List of subnet ids when Lambda Function should run in the VPC. Usually private or intra subnets. list(string) null no
vpc_security_group_ids List of security group ids when Lambda Function should run in the VPC. list(string) null no

Outputs

Name Description
Analyzer function Analyzer lambda function ARN
Cleaner function Cleaner lambda function ARN
Executor function Executor lambda function ARN
Initializer function Initializer lambda function ARN
Optimizer function Optimizer lambda function ARN

Authors

Module is maintained by Santiago Flores Kanter and it is based from Alex Casalboni Lambda power tuning solution.

License

Apache 2 Licensed. See LICENSE for full details.