Skip to content

Commit

Permalink
Stop replacing single_header & single_query_argument with an int (#19)
Browse files Browse the repository at this point in the history
* Stop replacing single_header & single_query_argument with an int

* Auto Format

---------

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
paulerickson and cloudpossebot authored Feb 7, 2023
1 parent d0a0cfa commit a31a965
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ version-resolver:
- 'bugfix'
- 'bug'
- 'hotfix'
- 'no-release'
default: 'minor'

categories:
Expand Down
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
":preserveSemverRanges"
],
"labels": ["auto-update"],
"dependencyDashboardAutoclose": true,
"enabledManagers": ["terraform"],
"terraform": {
"ignorePaths": ["**/context.tf", "examples/**"]
}
}

1 change: 1 addition & 0 deletions .github/workflows/validate-codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- name: "Checkout source code at current commit"
uses: actions/checkout@v2
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
- uses: mszostok/codeowners-validator@v0.7.1
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Full check of CODEOWNERS"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

## Copyrights

Copyright © 2021-2022 [Cloud Posse, LLC](https://cloudposse.com)
Copyright © 2021-2023 [Cloud Posse, LLC](https://cloudposse.com)



Expand Down Expand Up @@ -420,7 +420,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply

[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]

<!-- markdownlint-disable -->
[logo]: https://cloudposse.com/logo-300x69.svg
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-waf&utm_content=docs
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-aws-waf&utm_content=website
Expand Down Expand Up @@ -451,3 +451,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-aws-waf
[share_email]: mailto:?subject=terraform-aws-waf&body=https://github.com/cloudposse/terraform-aws-waf
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-aws-waf?pixel&cs=github&cm=readme&an=terraform-aws-waf
<!-- markdownlint-restore -->
16 changes: 8 additions & 8 deletions rules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ resource "aws_wafv2_web_acl" "default" {
}

dynamic "single_header" {
for_each = lookup(field_to_match.value, "single_header", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_header", null) != null ? [field_to_match.value.single_header] : []

content {
name = single_header.value.name
}
}

dynamic "single_query_argument" {
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [field_to_match.value.single_query_argument] : []

content {
name = single_query_argument.value.name
Expand Down Expand Up @@ -645,15 +645,15 @@ resource "aws_wafv2_web_acl" "default" {
}

dynamic "single_header" {
for_each = lookup(field_to_match.value, "single_header", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_header", null) != null ? [field_to_match.value.single_header] : []

content {
name = single_header.value.name
}
}

dynamic "single_query_argument" {
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [field_to_match.value.single_query_argument] : []

content {
name = single_query_argument.value.name
Expand Down Expand Up @@ -753,15 +753,15 @@ resource "aws_wafv2_web_acl" "default" {
}

dynamic "single_header" {
for_each = lookup(field_to_match.value, "single_header", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_header", null) != null ? [field_to_match.value.single_header] : []

content {
name = single_header.value.name
}
}

dynamic "single_query_argument" {
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [field_to_match.value.single_query_argument] : []

content {
name = single_query_argument.value.name
Expand Down Expand Up @@ -860,15 +860,15 @@ resource "aws_wafv2_web_acl" "default" {
}

dynamic "single_header" {
for_each = lookup(field_to_match.value, "single_header", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_header", null) != null ? [field_to_match.value.single_header] : []

content {
name = single_header.value.name
}
}

dynamic "single_query_argument" {
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [1] : []
for_each = lookup(field_to_match.value, "single_query_argument", null) != null ? [field_to_match.value.single_query_argument] : []

content {
name = single_query_argument.value.name
Expand Down

0 comments on commit a31a965

Please sign in to comment.