Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jSherz/terraform-provider-node-lambda-packager
Bundles your Lambda code and zips it up ready to feed into aws_lambda_function.
https://github.com/jSherz/terraform-provider-node-lambda-packager
Last synced: about 2 months ago
JSON representation
Bundles your Lambda code and zips it up ready to feed into aws_lambda_function.
- Host: GitHub
- URL: https://github.com/jSherz/terraform-provider-node-lambda-packager
- Owner: jSherz
- License: mpl-2.0
- Created: 2023-04-13T18:35:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T16:53:02.000Z (4 months ago)
- Last Synced: 2024-08-21T18:54:41.886Z (4 months ago)
- Language: Go
- Size: 132 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - jSherz/terraform-provider-node-lambda-packager - Bundles your Lambda code and zips it up ready to feed into aws_lambda_function. (Go)
README
# 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.[jSherz/automate-aws-access-removal]: https://github.com/jSherz/automate-aws-access-removal
## Build
```bash
make build
```## Install for local testing
```bash
make install
```## Test
```bash
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.[golang-ci-lint on GitHub]: https://github.com/golangci/golangci-lint
```bash
golangci-lint run
```### Fixing formatting or input problems
You can run a single linter in fix mode as follows:
```bash
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:```bash
golangci-lint run --no-config --enable gci --fix
golangci-lint run --no-config --enable gofumpt --fix
```[gci]: https://github.com/daixiang0/gci
[gofumpt]: https://github.com/mvdan/gofumpt