Skip to content

Commit

Permalink
rm unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmullen committed Aug 3, 2023
1 parent 9b391fe commit a43ef72
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 13 deletions.
4 changes: 1 addition & 3 deletions examples/public_private_flow_logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|------|-------------|------|---------|:--------:|
| <a name="input_az_count"></a> [az\_count](#input\_az\_count) | n/a | `any` | `null` | no |
| <a name="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id) | KMS Key ID | `string` | `null` | no |
| <a name="input_name"></a> [name](#input\_name) | n/a | `any` | `null` | no |
| <a name="input_subnets"></a> [subnets](#input\_subnets) | n/a | `any` | `null` | no |
| <a name="input_vpc_flow_logs"></a> [vpc\_flow\_logs](#input\_vpc\_flow\_logs) | Whether or not to create VPC flow logs and which type. Options: "cloudwatch", "s3", "none". | <pre>object({<br> log_destination = optional(string)<br> iam_role_arn = optional(string)<br> kms_key_id = optional(string)<br><br> log_destination_type = string<br> retention_in_days = optional(number)<br> tags = optional(map(string))<br> traffic_type = optional(string)<br> destination_options = optional(object({<br> file_format = optional(string)<br> hive_compatible_partitions = optional(bool)<br> per_hour_partition = optional(bool)<br> }))<br> })</pre> | <pre>{<br> "kms_key_id": null,<br> "log_destination_type": "cloud-watch-logs",<br> "retention_in_days": 180<br>}</pre> | no |

## Outputs
Expand Down
60 changes: 60 additions & 0 deletions examples/public_private_flow_logs/debug.log
Original file line number Diff line number Diff line change
@@ -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"}
8 changes: 8 additions & 0 deletions examples/public_private_flow_logs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -32,4 +38,6 @@ module "vpc" {
}

vpc_flow_logs = var.vpc_flow_logs

depends_on = [aws_ssm_parameter.foo]
}
10 changes: 0 additions & 10 deletions examples/public_private_flow_logs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit a43ef72

Please sign in to comment.