fix: remove duplicate variable declarations @RoseSecurity (#14)
## what- Runs pre-commit hooks on all files
- Removes duplicate variable declarations for logging configurations
why
- After vendoring the
waf
component, I was met with the following error when running aterraform plan
Error:
Initializing modules...
╷
│ Error: Duplicate variable declaration
│
│ on variables.tf line 1151:
│ 1151: variable "log_destination_configs" {
│
│ A variable named "log_destination_configs" was already declared at variables.tf:112,1-35. Variable
│ names must be unique within a module.
╵
╷
│ Error: Duplicate variable declaration
│
│ on variables.tf line 1161:
│ 1161: variable "redacted_fields" {
│
│ A variable named "redacted_fields" was already declared at variables.tf:118,1-27. Variable names must
│ be unique within a module.
╵
╷
│ Error: Duplicate variable declaration
│
│ on variables.tf line 1188:
│ 1188: variable "logging_filter" {
│
│ A variable named "logging_filter" was already declared at variables.tf:145,1-26. Variable names must be
│ unique within a module.
╵
╷
│ Error: Duplicate variable declaration
│
│ on variables.tf line 1239:
│ 1239: variable "association_resource_arns" {
│
│ A variable named "association_resource_arns" was already declared at variables.tf:169,1-37. Variable
│ names must be unique within a module.
╵
╷
│ Error: Duplicate variable declaration
│
│ on variables.tf line 1253:
│ 1253: variable "association_resource_component_selectors" {
│
│ A variable named "association_resource_component_selectors" was already declared at
│ variables.tf:197,1-52. Variable names must be unique within a module.
Summary by CodeRabbit
-
Chores
- Updated
.github/renovate.json
with a minor formatting change - Removed
.gitkeep
file fromdocs
directory
- Updated
-
Configuration
- Removed several logging and resource association variables from Terraform configuration