Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.24 KB

File metadata and controls

58 lines (39 loc) · 1.24 KB

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