Skip to content

Bundles your Lambda code and zips it up ready to feed into aws_lambda_function.

License

Notifications You must be signed in to change notification settings

jSherz/terraform-provider-node-lambda-packager

Repository files navigation

terraform-provider-node-lambda-packager

This Terraform provider helps you to co-locate your Lambda application code with your Infrastructure as Code (IaC). It uses esbuild to produce a bundle that's then zipped up and made ready for Terraform to consume.

See jSherz/automate-aws-access-removal for an example of this provider in use.

Build

make build

Install for local testing

make install

Test

make testacc

Linting

For install steps, see golang-ci-lint on GitHub. Find the correct version to use in the ./github/workflows/golangci-lint.yml file.

golangci-lint run

Fixing formatting or input problems

You can run a single linter in fix mode as follows:

golangci-lint run --no-config --enable gofumpt --fix

gci and gofumpt have to be run in order to have both agree about the import order and formatting:

golangci-lint run --no-config --enable gci --fix
golangci-lint run --no-config --enable gofumpt --fix

About

Bundles your Lambda code and zips it up ready to feed into aws_lambda_function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •