Skip to content

Commit

Permalink
fix source_cidr_block is expected to be a list than a string (#50)
Browse files Browse the repository at this point in the history
I kept receiving the error `aws_security_group_rule.ingress_tcp_443_cidr: cidr_blocks: should be a list`. This is because the variable `source_cidr_block` is a string than a list.

This change allowed me to create the security group.
  • Loading branch information
karthikmuralidharan authored and antonbabenko committed Aug 28, 2017
1 parent e4815e0 commit a7d4197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sg_https_only/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ variable "vpc_id" {

variable "source_cidr_block" {
description = "The source CIDR block to allow traffic from"
default = "0.0.0.0/0"
default = ["0.0.0.0/0"]
type = "list"
}

variable "tags" {
Expand Down

0 comments on commit a7d4197

Please sign in to comment.