Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: terraform-aws-modules/terraform-aws-lambda
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.2.0
Choose a base ref
...
head repository: terraform-aws-modules/terraform-aws-lambda
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 1,671 additions and 596 deletions.
  1. +1 −1 .github/workflows/lock.yml
  2. +1 −1 .github/workflows/pr-title.yml
  3. +27 −11 .github/workflows/pre-commit.yml
  4. +6 −6 .github/workflows/release.yml
  5. +1 −1 .github/workflows/stale-actions.yaml
  6. +20 −17 .pre-commit-config.yaml
  7. +208 −0 CHANGELOG.md
  8. +51 −49 README.md
  9. +4 −4 examples/alias/README.md
  10. +2 −2 examples/alias/main.tf
  11. +1 −1 examples/alias/versions.tf
  12. +4 −4 examples/async/README.md
  13. +2 −2 examples/async/main.tf
  14. +1 −1 examples/async/versions.tf
  15. +6 −3 examples/build-package/README.md
  16. +91 −65 examples/build-package/main.tf
  17. +1 −1 examples/build-package/versions.tf
  18. +4 −4 examples/code-signing/README.md
  19. +2 −2 examples/code-signing/main.tf
  20. +1 −1 examples/code-signing/versions.tf
  21. +4 −4 examples/complete/README.md
  22. +30 −28 examples/complete/main.tf
  23. +1 −1 examples/complete/versions.tf
  24. +10 −7 examples/container-image/README.md
  25. +60 −5 examples/container-image/main.tf
  26. +21 −21 examples/container-image/outputs.tf
  27. +1 −1 examples/container-image/versions.tf
  28. +4 −4 examples/deploy/README.md
  29. +2 −2 examples/deploy/main.tf
  30. +1 −1 examples/deploy/versions.tf
  31. +64 −0 examples/event-source-mapping/README.md
  32. +11 −3 examples/event-source-mapping/main.tf
  33. +5 −0 examples/event-source-mapping/outputs.tf
  34. +1 −1 examples/event-source-mapping/versions.tf
  35. +1 −1 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/docker/Dockerfile
  36. 0 examples/fixtures/{python3.8-app1 → python-app-poetry}/ignore_please.txt
  37. 0 examples/fixtures/{python3.10-app1 → python-app-poetry}/index.py
  38. 0 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/poetry.lock
  39. 0 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/poetry.toml
  40. +1 −1 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/pyproject.toml
  41. 0 examples/fixtures/{python3.9-app-src-poetry → python-app-src-poetry}/README.md
  42. 0 examples/fixtures/{python3.9-app-src-poetry → python-app-src-poetry}/poetry.lock
  43. +2 −2 examples/fixtures/{python3.9-app-src-poetry → python-app-src-poetry}/pyproject.toml
  44. 0 ...poetry/src/python39_app_src_poetry → python-app-src-poetry/src/python_app_src_poetry}/__init__.py
  45. 0 examples/fixtures/{python3.9-app-src-poetry → python-app-src-poetry}/tests/__init__.py
  46. 0 examples/fixtures/{python3.8-app1 → python-app1}/dir1/dir2/ignore2.txt
  47. +2 −2 examples/fixtures/{python3.8-app1 → python-app1}/docker/Dockerfile
  48. 0 examples/fixtures/{python3.8-app1 → python-app1}/docker/automake-1.13-to-1.16-spec.patch
  49. 0 examples/fixtures/{python3.8-app1 → python-app1}/docker/entrypoint.sh
  50. 0 examples/fixtures/{python3.9-app-poetry → python-app1}/ignore_please.txt
  51. 0 examples/fixtures/{python3.8-app1 → python-app1}/index.py
  52. 0 examples/fixtures/{python3.8-app1 → python-app1}/requirements.txt
  53. 0 examples/fixtures/{python3.8-app2 → python-app2}/index.py
  54. BIN examples/fixtures/python-function.zip
  55. BIN examples/fixtures/python-zip/existing_package.zip
  56. +0 −4 examples/fixtures/python3.9-app-poetry/index.py
  57. +2 −0 examples/fixtures/runtimes/go/.gitignore
  58. +5 −0 examples/fixtures/runtimes/go/go.mod
  59. +23 −0 examples/fixtures/runtimes/go/main.go
  60. +2 −0 examples/fixtures/runtimes/java21/.gitignore
  61. +40 −0 examples/fixtures/runtimes/java21/build.gradle
  62. +19 −0 examples/fixtures/runtimes/java21/src/main/java/example/Handler.java
  63. +2 −0 examples/fixtures/runtimes/rust/.gitignore
  64. +20 −0 examples/fixtures/runtimes/rust/Cargo.toml
  65. +30 −0 examples/fixtures/runtimes/rust/src/main.rs
  66. +5 −5 examples/multiple-regions/README.md
  67. +4 −4 examples/multiple-regions/main.tf
  68. +1 −1 examples/multiple-regions/versions.tf
  69. +68 −0 examples/runtimes/README.md
  70. +37 −0 examples/runtimes/checks.tf
  71. +98 −0 examples/runtimes/main.tf
  72. +24 −0 examples/runtimes/outputs.tf
  73. 0 examples/runtimes/variables.tf
  74. +18 −0 examples/runtimes/versions.tf
  75. +3 −3 examples/simple-cicd/README.md
  76. +2 −3 examples/simple-cicd/main.tf
  77. +2 −2 examples/simple-cicd/test.sh
  78. +1 −1 examples/simple-cicd/versions.tf
  79. +3 −3 examples/simple/README.md
  80. +28 −28 examples/simple/main.tf
  81. +1 −1 examples/simple/versions.tf
  82. +4 −4 examples/triggers/README.md
  83. +2 −2 examples/triggers/main.tf
  84. +1 −1 examples/triggers/versions.tf
  85. +4 −4 examples/with-efs/README.md
  86. +2 −2 examples/with-efs/main.tf
  87. +1 −1 examples/with-efs/versions.tf
  88. +4 −4 examples/with-vpc-s3-endpoint/README.md
  89. +2 −2 examples/with-vpc-s3-endpoint/main.tf
  90. +1 −1 examples/with-vpc-s3-endpoint/versions.tf
  91. +3 −3 examples/with-vpc/README.md
  92. +2 −2 examples/with-vpc/main.tf
  93. +1 −1 examples/with-vpc/versions.tf
  94. +16 −80 iam.tf
  95. +90 −30 main.tf
  96. +3 −3 modules/alias/README.md
  97. +20 −2 modules/alias/main.tf
  98. +6 −6 modules/deploy/README.md
  99. +7 −4 modules/docker-build/README.md
  100. +1 −0 modules/docker-build/main.tf
  101. +6 −0 modules/docker-build/variables.tf
  102. +5 −0 outputs.tf
  103. +214 −118 package.py
  104. +1 −0 tests/fixtures/node-app/index.js
  105. +16 −0 tests/fixtures/node-app/package.json
  106. +2 −2 tests/test_package_toml.py
  107. +50 −0 tests/test_zip_source.py
  108. +44 −2 variables.tf
  109. +1 −1 versions.tf
  110. +8 −1 wrappers/alias/versions.tf
  111. +16 −1 wrappers/deploy/versions.tf
  112. +1 −0 wrappers/docker-build/main.tf
  113. +16 −1 wrappers/docker-build/versions.tf
  114. +8 −2 wrappers/main.tf
  115. +20 −1 wrappers/versions.tf
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
- uses: dessant/lock-threads@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-comment: >
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/action-semantic-pull-request@v5.0.2
- uses: amannn/action-semantic-pull-request@v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
38 changes: 27 additions & 11 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ on:
- master

env:
TERRAFORM_DOCS_VERSION: v0.16.0
TFLINT_VERSION: v0.44.1
TERRAFORM_DOCS_VERSION: v0.19.0
TFLINT_VERSION: v0.53.0

jobs:
collectInputs:
@@ -18,11 +18,11 @@ jobs:
directories: ${{ steps.dirs.outputs.directories }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get root directories
id: dirs
uses: clowdhaus/terraform-composite-actions/directories@v1.8.3
uses: clowdhaus/terraform-composite-actions/directories@v1.9.0

preCommitMinVersions:
name: Min TF pre-commit
@@ -32,19 +32,27 @@ jobs:
matrix:
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
steps:
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
- name: Delete huge unnecessary tools folder
run: |
rm -rf /opt/hostedtoolcache/CodeQL
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
rm -rf /opt/hostedtoolcache/Ruby
rm -rf /opt/hostedtoolcache/go
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@v1.2.4
uses: clowdhaus/terraform-min-max@v1.3.1
with:
directory: ${{ matrix.directory }}

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory != '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -53,7 +61,7 @@ jobs:
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory == '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -64,18 +72,26 @@ jobs:
runs-on: ubuntu-latest
needs: collectInputs
steps:
# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
- name: Delete huge unnecessary tools folder
run: |
rm -rf /opt/hostedtoolcache/CodeQL
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
rm -rf /opt/hostedtoolcache/Ruby
rm -rf /opt/hostedtoolcache/go
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@v1.2.4
uses: clowdhaus/terraform-min-max@v1.3.1

- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
with:
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -20,18 +20,18 @@ jobs:
if: github.repository_owner == 'terraform-aws-modules'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 18.0.0
semantic_version: 23.0.2
extra_plugins: |
@semantic-release/changelog@6.0.0
@semantic-release/git@10.0.0
conventional-changelog-conventionalcommits@4.6.3
@semantic-release/changelog@6.0.3
@semantic-release/git@10.0.1
conventional-changelog-conventionalcommits@7.0.2
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/stale-actions.yaml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Staling issues and PR's
37 changes: 20 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.86.0
rev: v1.96.3
hooks:
- id: terraform_fmt
- id: terraform_wrapper_module_for_each
- id: terraform_validate
- id: terraform_docs
args:
- '--args=--lockfile=false'
- "--args=--lockfile=false"
- id: terraform_tflint
args:
- '--args=--only=terraform_deprecated_interpolation'
- '--args=--only=terraform_deprecated_index'
- '--args=--only=terraform_unused_declarations'
- '--args=--only=terraform_comment_syntax'
- '--args=--only=terraform_documented_outputs'
- '--args=--only=terraform_documented_variables'
- '--args=--only=terraform_typed_variables'
- '--args=--only=terraform_module_pinned_source'
- '--args=--only=terraform_naming_convention'
- '--args=--only=terraform_required_version'
- '--args=--only=terraform_required_providers'
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- "--args=--only=terraform_deprecated_interpolation"
- "--args=--only=terraform_deprecated_index"
- "--args=--only=terraform_unused_declarations"
- "--args=--only=terraform_comment_syntax"
- "--args=--only=terraform_documented_outputs"
- "--args=--only=terraform_documented_variables"
- "--args=--only=terraform_typed_variables"
- "--args=--only=terraform_module_pinned_source"
- "--args=--only=terraform_naming_convention"
- "--args=--only=terraform_required_version"
- "--args=--only=terraform_required_providers"
- "--args=--only=terraform_standard_module_structure"
- "--args=--only=terraform_workspace_remote"
- id: terraform_validate
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]
Loading