From a43ef720d00a3ff649161d255ced1145ce910178 Mon Sep 17 00:00:00 2001 From: drewmullen Date: Thu, 3 Aug 2023 12:28:12 -0400 Subject: [PATCH] rm unused vars --- examples/public_private_flow_logs/README.md | 4 +- examples/public_private_flow_logs/debug.log | 60 +++++++++++++++++++ examples/public_private_flow_logs/main.tf | 8 +++ .../public_private_flow_logs/variables.tf | 10 ---- 4 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 examples/public_private_flow_logs/debug.log diff --git a/examples/public_private_flow_logs/README.md b/examples/public_private_flow_logs/README.md index 4cdc94e..554ae2b 100644 --- a/examples/public_private_flow_logs/README.md +++ b/examples/public_private_flow_logs/README.md @@ -28,16 +28,14 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw | Name | Type | |------|------| +| [aws_ssm_parameter.foo](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource | | [aws_availability_zones.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [az\_count](#input\_az\_count) | n/a | `any` | `null` | no | | [kms\_key\_id](#input\_kms\_key\_id) | KMS Key ID | `string` | `null` | no | -| [name](#input\_name) | n/a | `any` | `null` | no | -| [subnets](#input\_subnets) | n/a | `any` | `null` | no | | [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". |
object({
log_destination = optional(string)
iam_role_arn = optional(string)
kms_key_id = optional(string)

log_destination_type = string
retention_in_days = optional(number)
tags = optional(map(string))
traffic_type = optional(string)
destination_options = optional(object({
file_format = optional(string)
hive_compatible_partitions = optional(bool)
per_hour_partition = optional(bool)
}))
})
|
{
"kms_key_id": null,
"log_destination_type": "cloud-watch-logs",
"retention_in_days": 180
}
| no | ## Outputs diff --git a/examples/public_private_flow_logs/debug.log b/examples/public_private_flow_logs/debug.log new file mode 100644 index 0000000..d324b51 --- /dev/null +++ b/examples/public_private_flow_logs/debug.log @@ -0,0 +1,60 @@ +2023-08-03T12:26:36.533-0400 [INFO] Terraform version: 1.5.0 +2023-08-03T12:26:36.533-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 +2023-08-03T12:26:36.533-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 +2023-08-03T12:26:36.533-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 +2023-08-03T12:26:36.533-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.2 +2023-08-03T12:26:36.533-0400 [INFO] Go runtime version: go1.20.5 +2023-08-03T12:26:36.533-0400 [INFO] CLI args: []string{"terraform", "fmt"} +2023-08-03T12:26:36.533-0400 [DEBUG] Attempting to open CLI config file: /Users/dm/.terraformrc +2023-08-03T12:26:36.533-0400 [INFO] Loading CLI configuration from /Users/dm/.terraformrc +2023-08-03T12:26:36.534-0400 [INFO] Loading CLI configuration from /Users/dm/.terraform.d/credentials.tfrc.json +2023-08-03T12:26:36.534-0400 [DEBUG] Explicit provider installation configuration is set +2023-08-03T12:26:36.535-0400 [INFO] CLI command args: []string{"fmt"} +2023-08-03T12:26:41.344-0400 [INFO] Terraform version: 1.5.0 +2023-08-03T12:26:41.344-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 +2023-08-03T12:26:41.344-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 +2023-08-03T12:26:41.344-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 +2023-08-03T12:26:41.344-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.2 +2023-08-03T12:26:41.344-0400 [INFO] Go runtime version: go1.20.5 +2023-08-03T12:26:41.344-0400 [INFO] CLI args: []string{"terraform", "fmt"} +2023-08-03T12:26:41.344-0400 [DEBUG] Attempting to open CLI config file: /Users/dm/.terraformrc +2023-08-03T12:26:41.344-0400 [INFO] Loading CLI configuration from /Users/dm/.terraformrc +2023-08-03T12:26:41.344-0400 [INFO] Loading CLI configuration from /Users/dm/.terraform.d/credentials.tfrc.json +2023-08-03T12:26:41.344-0400 [DEBUG] Explicit provider installation configuration is set +2023-08-03T12:26:41.344-0400 [INFO] CLI command args: []string{"fmt"} +2023-08-03T12:27:06.967-0400 [INFO] Terraform version: 1.5.0 +2023-08-03T12:27:06.967-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 +2023-08-03T12:27:06.967-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 +2023-08-03T12:27:06.967-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 +2023-08-03T12:27:06.967-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.2 +2023-08-03T12:27:06.967-0400 [INFO] Go runtime version: go1.20.5 +2023-08-03T12:27:06.967-0400 [INFO] CLI args: []string{"terraform", "fmt"} +2023-08-03T12:27:06.967-0400 [DEBUG] Attempting to open CLI config file: /Users/dm/.terraformrc +2023-08-03T12:27:06.967-0400 [INFO] Loading CLI configuration from /Users/dm/.terraformrc +2023-08-03T12:27:06.968-0400 [INFO] Loading CLI configuration from /Users/dm/.terraform.d/credentials.tfrc.json +2023-08-03T12:27:06.968-0400 [DEBUG] Explicit provider installation configuration is set +2023-08-03T12:27:06.968-0400 [INFO] CLI command args: []string{"fmt"} +2023-08-03T12:27:20.124-0400 [INFO] Terraform version: 1.5.0 +2023-08-03T12:27:20.124-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 +2023-08-03T12:27:20.124-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 +2023-08-03T12:27:20.124-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 +2023-08-03T12:27:20.124-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.2 +2023-08-03T12:27:20.124-0400 [INFO] Go runtime version: go1.20.5 +2023-08-03T12:27:20.124-0400 [INFO] CLI args: []string{"terraform", "fmt"} +2023-08-03T12:27:20.124-0400 [DEBUG] Attempting to open CLI config file: /Users/dm/.terraformrc +2023-08-03T12:27:20.124-0400 [INFO] Loading CLI configuration from /Users/dm/.terraformrc +2023-08-03T12:27:20.124-0400 [INFO] Loading CLI configuration from /Users/dm/.terraform.d/credentials.tfrc.json +2023-08-03T12:27:20.124-0400 [DEBUG] Explicit provider installation configuration is set +2023-08-03T12:27:20.125-0400 [INFO] CLI command args: []string{"fmt"} +2023-08-03T12:27:32.456-0400 [INFO] Terraform version: 1.5.0 +2023-08-03T12:27:32.457-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 +2023-08-03T12:27:32.457-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 +2023-08-03T12:27:32.457-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 +2023-08-03T12:27:32.457-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.2 +2023-08-03T12:27:32.457-0400 [INFO] Go runtime version: go1.20.5 +2023-08-03T12:27:32.457-0400 [INFO] CLI args: []string{"terraform", "fmt"} +2023-08-03T12:27:32.457-0400 [DEBUG] Attempting to open CLI config file: /Users/dm/.terraformrc +2023-08-03T12:27:32.457-0400 [INFO] Loading CLI configuration from /Users/dm/.terraformrc +2023-08-03T12:27:32.457-0400 [INFO] Loading CLI configuration from /Users/dm/.terraform.d/credentials.tfrc.json +2023-08-03T12:27:32.457-0400 [DEBUG] Explicit provider installation configuration is set +2023-08-03T12:27:32.457-0400 [INFO] CLI command args: []string{"fmt"} diff --git a/examples/public_private_flow_logs/main.tf b/examples/public_private_flow_logs/main.tf index 9c2f187..ab7b254 100644 --- a/examples/public_private_flow_logs/main.tf +++ b/examples/public_private_flow_logs/main.tf @@ -4,6 +4,12 @@ locals { myval = "drew" } +resource "aws_ssm_parameter" "foo" { + name = "foo" + type = "String" + value = "bar" +} + module "vpc" { # source = "aws-ia/vpc/aws" # version = ">= 4.2.0" @@ -32,4 +38,6 @@ module "vpc" { } vpc_flow_logs = var.vpc_flow_logs + + depends_on = [aws_ssm_parameter.foo] } diff --git a/examples/public_private_flow_logs/variables.tf b/examples/public_private_flow_logs/variables.tf index 4b3ccc5..d0c1796 100644 --- a/examples/public_private_flow_logs/variables.tf +++ b/examples/public_private_flow_logs/variables.tf @@ -28,13 +28,3 @@ variable "vpc_flow_logs" { kms_key_id = null } } - -variable "subnets" { - default = null -} -variable "az_count" { - default = null -} -variable "name" { - default = null -}