lambda-nodejs-yarn
hendrixroa/lambda-nodejs-yarn/aws
Lambda module for nodejs publishing automation
Lambda Node.js + yarn Lambda Module with the best security practice prebuilt with yarn installing to add custom modules and libreries from npmjs.com, ideally to integrate to CI/CD pipeline. Some features: - Integrated with S3 bucket to deploy latest version and compare if a lambda require update. - Best security best practices witn encryption features. - Easy handle to packaging zip + node_modules folder. - Terraform 0.12.+ How to use ``hcl module "my-lambda" { source = "hendrixroa/lambda-nodejs-yarn/aws" code_location = "../mylambdas/lambda" key_s3_bucket = "lambda.zip" s3_bucket_id = aws_s3_bucket.lambdas.id lambda_iam_role = aws_iam_role.lambda_basic_role.arn lambda_function_name = "lambda" lambda_runtime = "nodejs10.x" kms_key_logs = "kms key arn for logs" kms_key_lambda = "kms key arn
| Name | Type | Description | Default |
|---|---|---|---|
| kms_key_logs | string | KMS Key for logs encryption | required |
| s3_bucket_id | string | S3 bucket to save the lambda code | required |
| key_s3_bucket | string | key value of s3 object | required |
| lambda_runtime | string | Lambda runtime of function | required |
| lambda_iam_role | string | Lambda IAM role | required |
| kms_key_lambda | string | KMS Key for lambda encryption | required |
| code_location | string | Folder code | required |
| lambda_function_name | string | Lambda function name | required |
| subnets | list | Subnets | [] |
| sg_ids | list | Security groups | [] |
| environment_variables | map | Environment variables for lambda function | {} |
lambda_arn — ARN of function lambdainvoke_arnfunction_nameTerraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)
Terraform module that provision an S3 bucket to store the terraform.tfstate file