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

chore/update-v5.1.1 #9

Closed
wants to merge 75 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
e5159af
Updated pre-commit
antonbabenko Sep 20, 2021
352a8d9
chore: Updated outputs in example (#690)
itsmeremz Sep 20, 2021
39eae21
docs: Fixed docs in simple-vpc
antonbabenko Sep 20, 2021
96d22b8
Updated CHANGELOG
antonbabenko Oct 14, 2021
2423e4f
feat: Added support for VPC Flow Logs in Parquet format (#700)
drewmullen Oct 14, 2021
75911a9
Updated CHANGELOG
antonbabenko Oct 14, 2021
905dfa6
feat: Added timeout block to aws_default_route_table resource (#701)
msharma24 Oct 15, 2021
a93c233
Updated CHANGELOG
antonbabenko Oct 15, 2021
7bfc001
fix: Enabled destination_options only for VPC Flow Logs on S3 (#703)
kamialie Oct 15, 2021
afdc16e
Updated CHANGELOG
antonbabenko Oct 15, 2021
e09877d
feat: Add tags to VPC flow logs IAM policy (#706)
rajgandhi9 Nov 4, 2021
89a916e
Updated CHANGELOG
antonbabenko Nov 4, 2021
57ba0ef
fix: update CI/CD process to enable auto-release workflow (#711)
bryantbiggs Nov 22, 2021
7afd922
chore: Update release configuration files to correctly use convention…
bryantbiggs Jan 10, 2022
5f5d877
chore(release): version 3.11.1 [skip ci]
semantic-release-bot Jan 10, 2022
19fcf0d
fix: Correct `for_each` map on VPC endpoints to propagate endpoint ma…
bryantbiggs Jan 11, 2022
07d31cc
chore(release): version 3.11.2 [skip ci]
semantic-release-bot Jan 11, 2022
d1adf74
fix: Update tags for default resources to correct spurious plan diffs…
bryantbiggs Jan 13, 2022
6f89db5
chore(release): version 3.11.3 [skip ci]
semantic-release-bot Jan 13, 2022
7c8df92
fix: Fixed redshift_route_table_ids outputs (#739)
antonbabenko Jan 26, 2022
f296568
chore(release): version 3.11.4 [skip ci]
semantic-release-bot Jan 26, 2022
668d457
chore: Fixed code in examples (dynamodb resource not found error) (#742)
dauntlessnomad Jan 27, 2022
d247d8e
fix: Addresses persistent diff with manage_default_network_acl (#737)
lorengordon Jan 28, 2022
3208231
chore(release): version 3.11.5 [skip ci]
semantic-release-bot Jan 28, 2022
728a4d1
feat: Added custom route for NAT gateway (#748)
piersf Feb 7, 2022
98b0732
chore(release): version 3.12.0 [skip ci]
semantic-release-bot Feb 7, 2022
acb0ae5
feat: Made it clear that we stand with Ukraine
antonbabenko Mar 11, 2022
3523f69
chore(release): version 3.13.0 [skip ci]
semantic-release-bot Mar 11, 2022
e021186
chore: Updated information for users from Russia/Belarus
antonbabenko Mar 17, 2022
5913d7e
feat: Change to allow create variable within specific vpc objects (#773)
matipadeveloper Mar 31, 2022
41da688
chore(release): version 3.14.0 [skip ci]
semantic-release-bot Mar 31, 2022
024fbc0
fix: Declare data resource only for requested VPC endpoints (#800)
felixb Jun 16, 2022
93ca83a
chore(release): version 3.14.1 [skip ci]
semantic-release-bot Jun 16, 2022
c3fd156
fix: Compact CIDR block outputs to avoid empty diffs (#802)
bryantbiggs Jun 20, 2022
78f2845
chore(release): version 3.14.2 [skip ci]
semantic-release-bot Jun 20, 2022
67ef09a
fix: Allow `security_group_ids` to take `null` values (#825)
Jorge-Rodriguez Sep 2, 2022
4e57428
chore(release): version 3.14.3 [skip ci]
semantic-release-bot Sep 2, 2022
736931b
fix: Remove EC2-classic deprecation warnings by hardcoding classiclin…
bryantbiggs Sep 5, 2022
530b3d1
chore(release): version 3.14.4 [skip ci]
semantic-release-bot Sep 5, 2022
a06dd17
docs: Fix broken link in default VPC example readme (#827)
ag-adampike Sep 11, 2022
6eddcad
feat: Add IPAM IPv4 support (#716)
drewmullen Sep 25, 2022
6e356d2
chore(release): version 3.15.0 [skip ci]
semantic-release-bot Sep 25, 2022
4fe7745
feat: Add IPAM IPv6 support (#718)
drewmullen Sep 26, 2022
5939699
chore(release): version 3.16.0 [skip ci]
semantic-release-bot Sep 26, 2022
b0c81ad
fix: Prevent an error when VPC Flow log log_group and role is not cre…
air3ijai Oct 14, 2022
386de73
chore(release): version 3.16.1 [skip ci]
semantic-release-bot Oct 14, 2022
4416e37
feat: Add custom subnet names (#816)
andrewtcymmer Oct 21, 2022
66d018c
chore(release): version 3.17.0 [skip ci]
semantic-release-bot Oct 21, 2022
80d6318
feat: Added ability to specify CloudWatch Log group name for VPC Flow…
air3ijai Oct 21, 2022
6a3a9bd
chore(release): version 3.18.0 [skip ci]
semantic-release-bot Oct 21, 2022
b94561d
fix: Update CI configuration files to use latest version (#850)
bryantbiggs Oct 27, 2022
aa61bc4
chore(release): version 3.18.1 [skip ci]
semantic-release-bot Oct 27, 2022
2a0319e
fix: Use a version for to avoid GitHub API rate limiting on CI workf…
bryantbiggs Jan 3, 2023
a82c9d3
feat: Add public and private tags per az (#860)
nitrocode Jan 13, 2023
90ef90a
chore(release): version 3.19.0 [skip ci]
semantic-release-bot Jan 13, 2023
33b09ca
chore: Upgrade CI workflows to use non-deprecated runtimes (#886)
dev-slatto Jan 24, 2023
05a2282
chore: Updated example to enable TLS Inbound for Session Manager (#908)
kjenney Mar 10, 2023
7010e70
chore: Typo on README - "One NAT Gateway per subnet" section (#917)
altmas5 Mar 30, 2023
44e6eaa
feat!: Support enabling NAU metrics in "aws_vpc" resource (#838)
tcharewicz Apr 7, 2023
57323d9
chore(release): version 4.0.0 [skip ci]
semantic-release-bot Apr 7, 2023
6f51f34
fix: Add missing private subnets to max subnet length local (#920)
bryantbiggs Apr 7, 2023
6051692
chore(release): version 4.0.1 [skip ci]
semantic-release-bot Apr 7, 2023
743798d
fix: Add dns64 routes (#924)
mikesplain May 15, 2023
faa7ad9
chore(release): version 4.0.2 [skip ci]
semantic-release-bot May 15, 2023
4db6564
docs: Update link to complete example (#936)
glavk May 16, 2023
0ea859d
docs: Correct link address for `simple` example (#942)
tarikly May 29, 2023
2517eb9
feat!: Bump Terraform AWS Provider version to 5.0 (#941)
virgofx May 30, 2023
26c38a6
chore(release): version 5.0.0 [skip ci]
semantic-release-bot May 30, 2023
3770660
chore: Updated readme file with links and context about the war (#960)
Jul 4, 2023
802d5f1
feat: Add support for creating a security group for VPC endpoint(s) (…
bryantbiggs Jul 15, 2023
b588428
chore(release): version 5.1.0 [skip ci]
semantic-release-bot Jul 15, 2023
e4c48d4
fix: Ensure database route table output works (#926)
henworth Jul 25, 2023
fbd4ff6
chore(release): version 5.1.1 [skip ci]
semantic-release-bot Jul 25, 2023
1e36f9f
fix: The number of intra subnets should not influence the number of N…
samul69 Sep 7, 2023
bf9a89b
chore(release): version 5.1.2 [skip ci]
semantic-release-bot Sep 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 0 additions & 111 deletions .chglog/CHANGELOG.tpl.md

This file was deleted.

10 changes: 0 additions & 10 deletions .chglog/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

1. Update the README.md with details of changes including example hcl blocks and [example files](./examples) if appropriate.
2. Run pre-commit hooks `pre-commit run -a`.
3. Once all outstanding comments and checklist items have been addressed, your contribution will be merged! Merged PRs will be included in the next release. The terraform-aws-vpc maintainers take care of updating the CHANGELOG as they merge.

## Checklists for contributions

- [ ] Add [semantics prefix](#semantic-pull-requests) to your PR or Commits (at least one of your commit groups)
- [ ] CI tests are passing
- [ ] README.md has been updated after any changes to variables and outputs. See https://github.com/terraform-aws-modules/terraform-aws-vpc/#doc-generation
- [ ] Run pre-commit hooks `pre-commit run -a`

## Semantic Pull Requests

To generate changelog, Pull Requests or Commits must have semantic and must follow conventional specs below:

- `feat:` for new features
- `fix:` for bug fixes
- `improvement:` for enhancements
- `docs:` for documentation and examples
- `refactor:` for code refactoring
- `test:` for tests
- `ci:` for CI purpose
- `chore:` for chores stuff

The `chore` prefix skipped during changelog generation. It can be used for `chore: update changelog` commit message by example.
21 changes: 21 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Lock Threads'

on:
schedule:
- cron: '50 1 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-comment: >
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
issue-inactive-days: '30'
pr-comment: >
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.
pr-inactive-days: '30'
52 changes: 52 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Validate PR title'

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
# Please look up the latest version from
# https://github.com/amannn/action-semantic-pull-request/releases
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure which types are allowed.
# Default: https://github.com/commitizen/conventional-commit-types
types: |
fix
feat
docs
ci
chore
# Configure that a scope must always be provided.
requireScope: false
# Configure additional validation for the subject based on a regex.
# This example ensures the subject starts with an uppercase character.
subjectPattern: ^[A-Z].+$
# If `subjectPattern` is configured, you can use this property to override
# the default error message that is shown when the pattern doesn't match.
# The variables `subject` and `title` can be used within the message.
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
starts with an uppercase character.
# For work-in-progress PRs you can typically use draft pull requests
# from Github. However, private repositories on the free plan don't have
# this option and therefore this action allows you to opt-in to using the
# special "[WIP]" prefix to indicate this state. This will avoid the
# validation of the PR title and the pull request checks remain pending.
# Note that a second check will be reported if this is enabled.
wip: true
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: false
114 changes: 49 additions & 65 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,98 +2,82 @@ name: Pre-Commit

on:
pull_request:
push:
branches:
- main
- master

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

jobs:
# Min Terraform version(s)
getDirectories:
name: Get root directories
collectInputs:
name: Collect workflow inputs
runs-on: ubuntu-latest
outputs:
directories: ${{ steps.dirs.outputs.directories }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
- name: Build matrix
id: matrix
run: |
DIRS=$(python -c "import json; import glob; print(json.dumps([x.replace('/versions.tf', '') for x in glob.glob('./**/versions.tf', recursive=True)]))")
echo "::set-output name=directories::$DIRS"
outputs:
directories: ${{ steps.matrix.outputs.directories }}
uses: actions/checkout@v3

- name: Get root directories
id: dirs
uses: clowdhaus/terraform-composite-actions/[email protected]

preCommitMinVersions:
name: Min TF validate
needs: getDirectories
name: Min TF pre-commit
needs: collectInputs
runs-on: ubuntu-latest
strategy:
matrix:
directory: ${{ fromJson(needs.getDirectories.outputs.directories) }}
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
uses: actions/checkout@v3

- name: Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@v1.0.2
uses: clowdhaus/terraform-min-max@v1.2.4
with:
directory: ${{ matrix.directory }}
- name: Install Terraform v${{ steps.minMax.outputs.minVersion }}
uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ steps.minMax.outputs.minVersion }}
- name: Install pre-commit dependencies
run: pip install pre-commit
- name: Execute pre-commit

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory != '.' }}
run: pre-commit run terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*
- name: Execute pre-commit
uses: clowdhaus/terraform-composite-actions/[email protected]
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory == '.' }}
run: pre-commit run terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)
uses: clowdhaus/terraform-composite-actions/[email protected]
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'

# Max Terraform version
getBaseVersion:
name: Module max TF version
preCommitMaxVersion:
name: Max TF pre-commit
runs-on: ubuntu-latest
needs: collectInputs
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
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/[email protected]
outputs:
minVersion: ${{ steps.minMax.outputs.minVersion }}
maxVersion: ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/[email protected]

preCommitMaxVersion:
name: Max TF pre-commit
runs-on: ubuntu-latest
needs: getBaseVersion
strategy:
fail-fast: false
matrix:
version:
- ${{ needs.getBaseVersion.outputs.maxVersion }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
- name: Install Terraform v${{ matrix.version }}
uses: hashicorp/setup-terraform@v1
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/[email protected]
with:
terraform_version: ${{ matrix.version }}
- name: Install pre-commit dependencies
run: |
pip install pre-commit
curl -Lo ./terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/v0.13.0/terraform-docs-v0.13.0-$(uname)-amd64.tar.gz && tar -xzf terraform-docs.tar.gz && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
- name: Execute pre-commit
# Run all pre-commit checks on max version supported
if: ${{ matrix.version == needs.getBaseVersion.outputs.maxVersion }}
run: pre-commit run --color=always --show-diff-on-failure --all-files
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
install-hcledit: true
Loading
Loading