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: v4.16.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

Commits on May 4, 2023

  1. Copy the full SHA
    dcd899b View commit details
  2. chore(release): version 4.17.0 [skip ci]

    ## [4.17.0](v4.16.0...v4.17.0) (2023-05-04)
    
    ### Features
    
    * add qualified invoke ARN output ([#437](#437)) ([dcd899b](dcd899b))
    semantic-release-bot committed May 4, 2023
    Copy the full SHA
    424ec17 View commit details

Commits on May 17, 2023

  1. feat: Added control to create logs by Lambda@Edge in all regions (#462)

    Co-authored-by: Tomasz Rychlewicz <tomasz.rychlewicz@explaineverything.com>
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    3 people authored May 17, 2023
    Copy the full SHA
    712d8ec View commit details
  2. chore(release): version 4.18.0 [skip ci]

    ## [4.18.0](v4.17.0...v4.18.0) (2023-05-17)
    
    ### Features
    
    * Added control to create logs by Lambda@Edge in all regions ([#462](#462)) ([712d8ec](712d8ec))
    semantic-release-bot committed May 17, 2023
    Copy the full SHA
    e78cdf1 View commit details

Commits on Jun 5, 2023

  1. feat!: Bump versions of Terraform to 1.0, kreuzwerker/docker provider…

    … to 3.0 (#464)
    
    Co-authored-by: Ben Moss <bmoss37@bloomberg.net>
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    3 people authored Jun 5, 2023
    Copy the full SHA
    3f2044f View commit details
  2. chore(release): version 5.0.0 [skip ci]

    ## [5.0.0](v4.18.0...v5.0.0) (2023-06-05)
    
    ### ⚠ BREAKING CHANGES
    
    * Bump versions of Terraform to 1.0, kreuzwerker/docker provider to 3.0 (#464)
    
    ### Features
    
    * Bump versions of Terraform to 1.0, kreuzwerker/docker provider to 3.0 ([#464](#464)) ([3f2044f](3f2044f))
    semantic-release-bot committed Jun 5, 2023
    Copy the full SHA
    dc9356a View commit details

Commits on Jul 4, 2023

  1. feat: Support maximum concurrency of Lambda Alias with SQS as an even…

    …t source (#457)
    
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    Lucas Fauchille and antonbabenko authored Jul 4, 2023
    Copy the full SHA
    24bd26e View commit details
  2. chore(release): version 5.1.0 [skip ci]

    ## [5.1.0](v5.0.0...v5.1.0) (2023-07-04)
    
    ### Features
    
    * Support maximum concurrency of Lambda Alias with SQS as an event source ([#457](#457)) ([24bd26e](24bd26e))
    semantic-release-bot committed Jul 4, 2023
    Copy the full SHA
    0236678 View commit details

Commits on Jul 5, 2023

  1. Copy the full SHA
    b5e9346 View commit details
  2. chore(release): version 5.2.0 [skip ci]

    ## [5.2.0](v5.1.0...v5.2.0) (2023-07-05)
    
    ### Features
    
    * Add module wrappers ([#479](#479)) ([b5e9346](b5e9346))
    semantic-release-bot committed Jul 5, 2023
    Copy the full SHA
    db9e6da View commit details

Commits on Jul 17, 2023

  1. Copy the full SHA
    2a59ba2 View commit details
  2. chore(release): version 5.3.0 [skip ci]

    ## [5.3.0](v5.2.0...v5.3.0) (2023-07-17)
    
    ### Features
    
    * Added timeouts for Lambda Functions ([#485](#485)) ([2a59ba2](2a59ba2))
    semantic-release-bot committed Jul 17, 2023
    Copy the full SHA
    5b2eb57 View commit details

Commits on Aug 9, 2023

  1. Copy the full SHA
    9c9603c View commit details
  2. chore(release): version 6.0.0 [skip ci]

    ## [6.0.0](v5.3.0...v6.0.0) (2023-08-09)
    
    ### ⚠ BREAKING CHANGES
    
    * Disable creation of SAM metadata null-resources by default (#494)
    
    ### Features
    
    * Disable creation of SAM metadata null-resources by default ([#494](#494)) ([9c9603c](9c9603c))
    semantic-release-bot committed Aug 9, 2023
    Copy the full SHA
    9acd322 View commit details

Commits on Sep 19, 2023

  1. Copy the full SHA
    754fa22 View commit details

Commits on Oct 5, 2023

  1. Copy the full SHA
    ffa56e8 View commit details
  2. chore(release): version 6.0.1 [skip ci]

    ### [6.0.1](v6.0.0...v6.0.1) (2023-10-05)
    
    ### Bug Fixes
    
    * Fixed npm install on Windows without having to use wsl ([#502](#502)) ([ffa56e8](ffa56e8))
    semantic-release-bot committed Oct 5, 2023
    Copy the full SHA
    e2500c0 View commit details

Commits on Oct 27, 2023

  1. feat: Allows tags to be provided only to the function (#508)

    Co-authored-by: Mike Carey <mike-carey@users.noreply.github.com>
    mike-carey and mike-carey authored Oct 27, 2023
    Copy the full SHA
    610d602 View commit details
  2. chore(release): version 6.1.0 [skip ci]

    ## [6.1.0](v6.0.1...v6.1.0) (2023-10-27)
    
    ### Features
    
    * Allows tags to be provided only to the function ([#508](#508)) ([610d602](610d602))
    semantic-release-bot committed Oct 27, 2023
    Copy the full SHA
    9e2fff8 View commit details
  3. feat: Make compatible_runtimes optional, added sam metadata control (

    …#493)
    
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
    3 people authored Oct 27, 2023
    Copy the full SHA
    180da4c View commit details
  4. chore(release): version 6.2.0 [skip ci]

    ## [6.2.0](v6.1.0...v6.2.0) (2023-10-27)
    
    ### Features
    
    * Make `compatible_runtimes` optional, added sam metadata control ([#493](#493)) ([180da4c](180da4c))
    semantic-release-bot committed Oct 27, 2023
    Copy the full SHA
    d4bc88a View commit details

Commits on Nov 3, 2023

  1. feat: Allow to specify custom KMS key for S3 object (#505)

    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    joschna and antonbabenko authored Nov 3, 2023
    Copy the full SHA
    eb339d6 View commit details
  2. chore(release): version 6.3.0 [skip ci]

    ## [6.3.0](v6.2.0...v6.3.0) (2023-11-03)
    
    ### Features
    
    * Allow to specify custom KMS key for S3 object ([#505](#505)) ([eb339d6](eb339d6))
    semantic-release-bot committed Nov 3, 2023
    Copy the full SHA
    04e0349 View commit details

Commits on Nov 7, 2023

  1. Copy the full SHA
    41d8db7 View commit details
  2. chore(release): version 6.4.0 [skip ci]

    ## [6.4.0](v6.3.0...v6.4.0) (2023-11-07)
    
    ### Features
    
    * Added support for triggers in docker-build module when hash changes ([#510](#510)) ([41d8db7](41d8db7))
    semantic-release-bot committed Nov 7, 2023
    Copy the full SHA
    9562536 View commit details

Commits on Nov 22, 2023

  1. Copy the full SHA
    c173c27 View commit details
  2. chore(release): version 6.5.0 [skip ci]

    ## [6.5.0](v6.4.0...v6.5.0) (2023-11-22)
    
    ### Features
    
    * Added variable to control the create log group permission ([#514](#514)) ([c173c27](c173c27))
    semantic-release-bot committed Nov 22, 2023
    Copy the full SHA
    9633abb View commit details

Commits on Nov 30, 2023

  1. Copy the full SHA
    be31ada View commit details

Commits on Jan 12, 2024

  1. feat: Added support for triggers on docker_registry_image resource (#518

    )
    
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    IlyesDemineExtVeolia and antonbabenko authored Jan 12, 2024
    Copy the full SHA
    4ed7d19 View commit details
  2. chore(release): version 6.6.0 [skip ci]

    ## [6.6.0](v6.5.0...v6.6.0) (2024-01-12)
    
    ### Features
    
    * Added support for triggers on docker_registry_image resource ([#518](#518)) ([4ed7d19](4ed7d19))
    semantic-release-bot committed Jan 12, 2024
    Copy the full SHA
    fd5a4c8 View commit details

Commits on Jan 14, 2024

  1. feat: Add control to use timestamp to trigger the package creation or…

    … not (useful for CI/CD) (#521)
    
    Co-authored-by: Samuel Phan <samuel.phan@yahooinc.com>
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    3 people authored Jan 14, 2024
    Copy the full SHA
    57dbfc1 View commit details
  2. chore(release): version 6.7.0 [skip ci]

    ## [6.7.0](v6.6.0...v6.7.0) (2024-01-14)
    
    ### Features
    
    * Add control to use timestamp to trigger the package creation or not (useful for CI/CD) ([#521](#521)) ([57dbfc1](57dbfc1))
    semantic-release-bot committed Jan 14, 2024
    Copy the full SHA
    a729331 View commit details

Commits on Jan 15, 2024

  1. Copy the full SHA
    b4bfe39 View commit details
  2. chore(release): version 6.7.1 [skip ci]

    ### [6.7.1](v6.7.0...v6.7.1) (2024-01-15)
    
    ### Bug Fixes
    
    * Set timeouts only when values are given ([#522](#522)) ([b4bfe39](b4bfe39))
    semantic-release-bot committed Jan 15, 2024
    Copy the full SHA
    91c49f6 View commit details
  3. chore: Update to supported versions of Python and bump pytest (#526)

    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    n8felton and antonbabenko authored Jan 15, 2024
    Copy the full SHA
    dcb087d View commit details

Commits on Jan 17, 2024

  1. feat: Allow defining direct path to pyproject.toml (#525)

    Co-authored-by: Patrick Decat <pdecat@gmail.com>
    n8felton and pdecat authored Jan 17, 2024
    Copy the full SHA
    d33b722 View commit details
  2. chore(release): version 6.8.0 [skip ci]

    ## [6.8.0](v6.7.1...v6.8.0) (2024-01-17)
    
    ### Features
    
    * Allow defining direct path to pyproject.toml ([#525](#525)) ([d33b722](d33b722))
    semantic-release-bot committed Jan 17, 2024
    Copy the full SHA
    20f6aae View commit details

Commits on Jan 18, 2024

  1. Copy the full SHA
    0c09415 View commit details

Commits on Jan 19, 2024

  1. feat!: Added advanced logging configuration. Bump version of AWS prov…

    …ider to 5.32 (#531)
    
    Co-authored-by: Anton Babenko <anton@antonbabenko.com>
    JoshuaLicense and antonbabenko authored Jan 19, 2024
    Copy the full SHA
    259b403 View commit details
  2. chore(release): version 7.0.0 [skip ci]

    ## [7.0.0](v6.8.0...v7.0.0) (2024-01-19)
    
    ### ⚠ BREAKING CHANGES
    
    * Added advanced logging configuration. Bump version of AWS provider to 5.32 (#531)
    
    ### Features
    
    * Added advanced logging configuration. Bump version of AWS provider to 5.32 ([#531](#531)) ([259b403](259b403))
    semantic-release-bot committed Jan 19, 2024
    Copy the full SHA
    52a230b View commit details

Commits on Jan 22, 2024

  1. Copy the full SHA
    eebfc36 View commit details
  2. chore(release): version 7.1.0 [skip ci]

    ## [7.1.0](v7.0.0...v7.1.0) (2024-01-22)
    
    ### Features
    
    * Commands should fail the build if their exit code is not zero ([#534](#534)) ([eebfc36](eebfc36))
    semantic-release-bot committed Jan 22, 2024
    Copy the full SHA
    cff9461 View commit details

Commits on Jan 26, 2024

  1. Copy the full SHA
    e33a1a1 View commit details
  2. chore(release): version 7.2.0 [skip ci]

    ## [7.2.0](v7.1.0...v7.2.0) (2024-01-26)
    
    ### Features
    
    * Added support to override default tags of provider in S3 object ([#538](#538)) ([e33a1a1](e33a1a1))
    semantic-release-bot committed Jan 26, 2024
    Copy the full SHA
    9e3798e View commit details

Commits on Jan 31, 2024

  1. Copy the full SHA
    b9a6ea1 View commit details
  2. chore(release): version 7.2.1 [skip ci]

    ### [7.2.1](v7.2.0...v7.2.1) (2024-01-31)
    
    ### Bug Fixes
    
    * Dynamic logging config for Gov Cloud ([#541](#541)) ([b9a6ea1](b9a6ea1))
    semantic-release-bot committed Jan 31, 2024
    Copy the full SHA
    dc7c19b View commit details

Commits on Mar 13, 2024

  1. Copy the full SHA
    cfe47e6 View commit details
  2. chore(release): version 7.2.2 [skip ci]

    ## [7.2.2](v7.2.1...v7.2.2) (2024-03-13)
    
    ### Bug Fixes
    
    * Update CI workflow versions to remove deprecated runtime warnings ([#549](#549)) ([cfe47e6](cfe47e6))
    semantic-release-bot committed Mar 13, 2024
    Copy the full SHA
    685e523 View commit details

Commits on Mar 22, 2024

  1. Copy the full SHA
    8f97707 View commit details
  2. chore(release): version 7.2.3 [skip ci]

    ## [7.2.3](v7.2.2...v7.2.3) (2024-03-22)
    
    ### Bug Fixes
    
    * Fixed constant drift with Lambda logging configuration ([#551](#551)) ([8f97707](8f97707))
    semantic-release-bot committed Mar 22, 2024
    Copy the full SHA
    4cf383e View commit details
Showing with 3,664 additions and 958 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. +30 −7 .github/workflows/test.yml
  7. +21 −17 .pre-commit-config.yaml
  8. +360 −0 CHANGELOG.md
  9. +72 −56 README.md
  10. +5 −5 examples/alias/README.md
  11. +5 −5 examples/alias/main.tf
  12. +2 −2 examples/alias/versions.tf
  13. +5 −5 examples/async/README.md
  14. +2 −3 examples/async/main.tf
  15. +2 −2 examples/async/versions.tf
  16. +9 −4 examples/build-package/README.md
  17. +120 −56 examples/build-package/main.tf
  18. +2 −2 examples/build-package/versions.tf
  19. +5 −5 examples/code-signing/README.md
  20. +2 −3 examples/code-signing/main.tf
  21. +2 −2 examples/code-signing/versions.tf
  22. +10 −5 examples/complete/README.md
  23. +104 −23 examples/complete/main.tf
  24. +5 −0 examples/complete/outputs.tf
  25. +2 −2 examples/complete/versions.tf
  26. +14 −9 examples/container-image/README.md
  27. +84 −10 examples/container-image/main.tf
  28. +30 −20 examples/container-image/outputs.tf
  29. +3 −3 examples/container-image/versions.tf
  30. +5 −5 examples/deploy/README.md
  31. +2 −3 examples/deploy/main.tf
  32. +2 −2 examples/deploy/versions.tf
  33. +64 −0 examples/event-source-mapping/README.md
  34. +12 −5 examples/event-source-mapping/main.tf
  35. +5 −0 examples/event-source-mapping/outputs.tf
  36. +2 −2 examples/event-source-mapping/versions.tf
  37. +1 −1 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/docker/Dockerfile
  38. 0 examples/fixtures/{python3.8-app1 → python-app-poetry}/ignore_please.txt
  39. 0 examples/fixtures/{python3.8-app1 → python-app-poetry}/index.py
  40. 0 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/poetry.lock
  41. 0 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/poetry.toml
  42. +1 −1 examples/fixtures/{python3.9-app-poetry → python-app-poetry}/pyproject.toml
  43. 0 examples/fixtures/python-app-src-poetry/README.md
  44. +31 −0 examples/fixtures/python-app-src-poetry/poetry.lock
  45. +16 −0 examples/fixtures/python-app-src-poetry/pyproject.toml
  46. 0 examples/fixtures/python-app-src-poetry/src/python_app_src_poetry/__init__.py
  47. 0 examples/fixtures/python-app-src-poetry/tests/__init__.py
  48. 0 examples/fixtures/{python3.8-app1 → python-app1}/dir1/dir2/ignore2.txt
  49. +2 −2 examples/fixtures/{python3.8-app1 → python-app1}/docker/Dockerfile
  50. 0 examples/fixtures/{python3.8-app1 → python-app1}/docker/automake-1.13-to-1.16-spec.patch
  51. 0 examples/fixtures/{python3.8-app1 → python-app1}/docker/entrypoint.sh
  52. 0 examples/fixtures/{python3.9-app-poetry → python-app1}/ignore_please.txt
  53. 0 examples/fixtures/{python3.9-app-poetry → python-app1}/index.py
  54. 0 examples/fixtures/{python3.8-app1 → python-app1}/requirements.txt
  55. +25 −0 examples/fixtures/python-app2/index.py
  56. BIN examples/fixtures/python-function.zip
  57. BIN examples/fixtures/python-zip/existing_package.zip
  58. +0 −26 examples/fixtures/python3.8-app2/index.py
  59. +2 −0 examples/fixtures/runtimes/go/.gitignore
  60. +5 −0 examples/fixtures/runtimes/go/go.mod
  61. +23 −0 examples/fixtures/runtimes/go/main.go
  62. +2 −0 examples/fixtures/runtimes/java21/.gitignore
  63. +40 −0 examples/fixtures/runtimes/java21/build.gradle
  64. +19 −0 examples/fixtures/runtimes/java21/src/main/java/example/Handler.java
  65. +2 −0 examples/fixtures/runtimes/rust/.gitignore
  66. +20 −0 examples/fixtures/runtimes/rust/Cargo.toml
  67. +30 −0 examples/fixtures/runtimes/rust/src/main.rs
  68. +6 −6 examples/multiple-regions/README.md
  69. +4 −6 examples/multiple-regions/main.tf
  70. +2 −2 examples/multiple-regions/versions.tf
  71. +68 −0 examples/runtimes/README.md
  72. +37 −0 examples/runtimes/checks.tf
  73. +98 −0 examples/runtimes/main.tf
  74. +24 −0 examples/runtimes/outputs.tf
  75. 0 examples/runtimes/variables.tf
  76. +18 −0 examples/runtimes/versions.tf
  77. +1 −0 examples/simple-cicd/.gitignore
  78. +53 −0 examples/simple-cicd/README.md
  79. +25 −0 examples/simple-cicd/main.tf
  80. 0 examples/simple-cicd/outputs.tf
  81. +126 −0 examples/simple-cicd/test.sh
  82. 0 examples/simple-cicd/variables.tf
  83. +14 −0 examples/simple-cicd/versions.tf
  84. +4 −4 examples/simple/README.md
  85. +28 −29 examples/simple/main.tf
  86. +2 −2 examples/simple/versions.tf
  87. +5 −5 examples/triggers/README.md
  88. +2 −3 examples/triggers/main.tf
  89. +2 −2 examples/triggers/versions.tf
  90. +6 −6 examples/with-efs/README.md
  91. +3 −4 examples/with-efs/main.tf
  92. +2 −2 examples/with-efs/versions.tf
  93. +7 −7 examples/with-vpc-s3-endpoint/README.md
  94. +4 −5 examples/with-vpc-s3-endpoint/main.tf
  95. +2 −2 examples/with-vpc-s3-endpoint/versions.tf
  96. +5 −5 examples/with-vpc/README.md
  97. +3 −4 examples/with-vpc/main.tf
  98. +2 −2 examples/with-vpc/versions.tf
  99. +18 −82 iam.tf
  100. +118 −30 main.tf
  101. +4 −4 modules/alias/README.md
  102. +27 −2 modules/alias/main.tf
  103. +1 −1 modules/alias/versions.tf
  104. +7 −7 modules/deploy/README.md
  105. +1 −1 modules/deploy/main.tf
  106. +1 −1 modules/deploy/versions.tf
  107. +20 −7 modules/docker-build/README.md
  108. +16 −3 modules/docker-build/main.tf
  109. +6 −1 modules/docker-build/outputs.tf
  110. +36 −0 modules/docker-build/variables.tf
  111. +2 −2 modules/docker-build/versions.tf
  112. +10 −0 outputs.tf
  113. +631 −398 package.py
  114. +1 −1 package.tf
  115. +1 −0 tests/fixtures/node-app/index.js
  116. +16 −0 tests/fixtures/node-app/package.json
  117. +20 −2 tests/test_package_toml.py
  118. +50 −0 tests/test_zip_source.py
  119. +118 −5 variables.tf
  120. +2 −2 versions.tf
  121. +100 −0 wrappers/README.md
  122. +100 −0 wrappers/alias/README.md
  123. +25 −0 wrappers/alias/main.tf
  124. +5 −0 wrappers/alias/outputs.tf
  125. +11 −0 wrappers/alias/variables.tf
  126. +10 −0 wrappers/alias/versions.tf
  127. +100 −0 wrappers/deploy/README.md
  128. +41 −0 wrappers/deploy/main.tf
  129. +5 −0 wrappers/deploy/outputs.tf
  130. +11 −0 wrappers/deploy/variables.tf
  131. +18 −0 wrappers/deploy/versions.tf
  132. +100 −0 wrappers/docker-build/README.md
  133. +26 −0 wrappers/docker-build/main.tf
  134. +5 −0 wrappers/docker-build/outputs.tf
  135. +11 −0 wrappers/docker-build/variables.tf
  136. +18 −0 wrappers/docker-build/versions.tf
  137. +138 −0 wrappers/main.tf
  138. +5 −0 wrappers/outputs.tf
  139. +11 −0 wrappers/variables.tf
  140. +22 −0 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: 30 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Tests

env:
PYTEST_VERSION: 7.1.3
PYTEST_VERSION: 7.4.4
RUFF_VERSION: 0.1.13
RUFF_PY_VERSION: 3.12

on:
push:
@@ -16,22 +18,43 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10"]
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python_version }}

- name: Install poetry and tox
- name: Install poetry
shell: bash
run: |
pip install pytest==${PYTEST_VERSION}
pip install pytest==${{ env.PYTEST_VERSION }}
- name: Run tox
- name: Run pytest
shell: bash
run: |
python -m pytest -vvv tests/
format:
name: Ruff Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1

- name: Set up Python
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ env.RUFF_PY_VERSION }}

- name: Install ruff
shell: bash
run: |
pip install ruff==${{ env.RUFF_VERSION }}
- name: Run ruff format check
shell: bash
run: |
ruff format --check .
38 changes: 21 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.1
rev: v1.96.3
hooks:
- id: terraform_fmt
- id: terraform_validate
- id: terraform_wrapper_module_for_each
- 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.4.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