Skip to content

Commit d96ad34

Browse files
committed
Fix "list" warning
Terraform 0.11 and earlier required type constraints to be given in quotes, but that form is now deprecated and will be removed in a future version of Terraform. To silence this warning, remove the quotes around "list" and write list(string) instead to explicitly indicate that the list elements are strings.
1 parent 8dd5b0f commit d96ad34

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

modules/bastion/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ variable "associate_public_ip_address" {
5858

5959
variable "allow_ssh_cidrs" {
6060
description = "List Cidrs from where ssh is to be allowed for bastion host. Default is anywhere"
61-
type = "list"
61+
type = list
6262
default = ["0.0.0.0/0"]
6363
}
6464

modules/network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ variable "bastion_host_keypair" {
6767

6868
variable "bastion_host_allow_ssh_cidrs" {
6969
description = "List Cidrs from where ssh is to be allowed for bastion host. Default is anywhere"
70-
type = "list"
70+
type = list
7171
default = ["0.0.0.0/0"]
7272
}
7373

modules/spare-subnet/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ variable "vpc_id" {}
66

77
variable "spare_subnets" {
88
description = "A list of CIDR blocks for spare subnets inside the VPC."
9-
type = "list"
9+
type = list
1010
}
1111

1212
variable "azs" {
1313
description = "A list of Availability zones in the region"
14-
type = "list"
14+
type = list
1515
}

0 commit comments

Comments
 (0)