Skip to content

Commit

Permalink
Fixes tflint terraform_unused_declarations in ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Oct 17, 2024
1 parent a128af7 commit 0783fd0
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 31 deletions.
6 changes: 0 additions & 6 deletions internal/service/ec2/testdata/Subnet/data.tags/main_gen.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ resource "aws_vpc" "test" {
cidr_block = "10.1.0.0/16"
}

variable "rName" {
description = "Name for resource"
type = string
nullable = false
}

variable "resource_tags" {
description = "Tags to set on resource. To specify no tags, set to `null`"
# Not setting a default, so that this must explicitly be set to `null` to specify no tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ resource "aws_vpc" "test" {
cidr_block = "10.1.0.0/16"
}

variable "rName" {
description = "Name for resource"
type = string
nullable = false
}

variable "resource_tags" {
description = "Tags to set on resource. To specify no tags, set to `null`"
# Not setting a default, so that this must explicitly be set to `null` to specify no tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ resource "aws_vpc" "test" {
cidr_block = "10.1.0.0/16"
}

variable "rName" {
description = "Name for resource"
type = string
nullable = false
}

variable "resource_tags" {
description = "Tags to set on resource. To specify no tags, set to `null`"
# Not setting a default, so that this must explicitly be set to `null` to specify no tags
Expand Down
1 change: 1 addition & 0 deletions internal/service/ec2/vpc_subnet_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

// @SDKDataSource("aws_subnet")
// @Tags(identifierAttribute="id")
// @Testing(generator=false)
func dataSourceSubnet() *schema.Resource {
return &schema.Resource{
ReadWithoutTimeout: dataSourceSubnetRead,
Expand Down
13 changes: 0 additions & 13 deletions internal/service/ec2/vpc_subnet_data_source_tags_gen_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0783fd0

Please sign in to comment.