Skip to content

Commit 2be07be

Browse files
authored
updating doku, building new go executable, changing lambda zip (#7)
* building new go executable * changing lambda zip * updating doku
1 parent 4251f77 commit 2be07be

File tree

7 files changed

+21
-3
lines changed

7 files changed

+21
-3
lines changed

.github/workflows/pre-commit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
env:
1111
PYTHON_VERSION: "3.10"
1212
TERRAFORM_DOCS_VERSION: "v0.16.0"
13-
TFLINT_VERSION: "v0.40.1"
13+
TFLINT_VERSION: "v0.46.1"
1414

1515
permissions:
1616
contents: read

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: end-of-file-fixer
1111

1212
- repo: https://github.com/antonbabenko/pre-commit-terraform
13-
rev: v1.77.1
13+
rev: v1.86.0
1414
hooks:
1515
- id: terraform_fmt
1616
- id: terraform_tflint

.tflint.hcl

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ plugin "terraform" {
44
source = "github.com/terraform-linters/tflint-ruleset-terraform"
55
preset = "recommended"
66
}
7+
78
plugin "aws" {
89
enabled = true
9-
version = "0.17.0"
10+
version = "0.32.0"
1011
source = "github.com/terraform-linters/tflint-ruleset-aws"
1112
}

.tool-versions

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
golang 1.21.0
2+
terraform-docs 0.16.0
3+
tflint 0.46.1

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ check your code before you will create pull-requests. See
7474
[GitHub Actions documentation](https://docs.github.com/en/actions) for further
7575
details.
7676

77+
### Building lambda package
78+
79+
- use `asdf` to install necessary go version
80+
- compile go code
81+
- zip compiled code and push to the repository
82+
83+
```bash
84+
asdf install
85+
86+
GOARCH=amd64 GOOS=linux go build -o bootstrap main.go
87+
88+
zip lambda.zip bootstrap
89+
90+
```
7791

7892
## License
7993

main bootstrap

16.7 MB
Binary file not shown.

lambda.zip

614 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)