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.
make build
make install
make testacc
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
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