Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add wrapper module and pre-commit hook #3

Merged
merged 3 commits into from
Jun 7, 2022

Conversation

gpdenny
Copy link
Contributor

@gpdenny gpdenny commented Jun 6, 2022

Description

Add wrapper module.

Motivation and Context

Terragrunt User 👋
Following the example in the terraform-aws-s3-bucket repo.

Breaking Changes

None

How Has This Been Tested?

- [ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
(Included in the wrapper README)
- [ ] I have tested and validated these changes using one or more of the provided examples/* projects
(Not sure that's required for this feat?)

  • I have executed pre-commit run -a on my pull request

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see that you are using Terragrunt with this pattern (wrapper) also.

The PR looks good but examples in wrappers/README.md should be updated. Those examples are generic and currently only use the s3-bucket module. It is not very easy to make them really dynamic for each module using terraform_wrapper_module_for_each hook.

sudo tar -xzf hcledit.tgz -C /usr/bin/ hcledit
rm -f hcledit.tgz 2> /dev/null
hcledit version

- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/[email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please bump this

Suggested change
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.5.0

sudo tar -xzf hcledit.tgz -C /usr/bin/ hcledit
rm -f hcledit.tgz 2> /dev/null
hcledit version

- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/[email protected]
with:
Copy link
Member

@bryantbiggs bryantbiggs Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -71,6 +71,14 @@ jobs:
id: minMax
uses: clowdhaus/[email protected]

- name: Install hcledit (for terraform_wrapper_module_for_each hook)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the changes to the version of the pre-commit action and adding install-hcledit: true we can remove this new step

@antonbabenko antonbabenko merged commit c2284be into terraform-aws-modules:master Jun 7, 2022
antonbabenko pushed a commit that referenced this pull request Jun 7, 2022
## [1.2.0](v1.1.1...v1.2.0) (2022-06-07)

### Features

* Add wrapper module and pre-commit hook ([#3](#3)) ([c2284be](c2284be))
@antonbabenko
Copy link
Member

This PR is included in version 1.2.0 🎉

@gpdenny
Copy link
Contributor Author

gpdenny commented Jun 7, 2022

Super! Thanks 👌

@gpdenny gpdenny deleted the add-wrappers branch June 7, 2022 09:27
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants