Closed narendran07 closed 5 years ago
In Terraform 0.12, redundant array brace syntax for arguments changes from being required to being an error. updated code as below..
resource "aws_security_group" "from_europe" {
name = "from_europe"
ingress {
from_port = "443"
to_port = "443"
protocol = "tcp"
cidr_blocks = data.aws_ip_ranges.european_ec2.cidr_blocks
}
}
There is a separate branch for terraform 0.12 code. The brace syntax should be removed there.
I am getting error when i tried to use the terraform datasource (aws_ip_ranges) to get the avaliable ip address ranges for service "ec2".
Getting this below error when executing "terraform apply"
version: Terraform v0.12.6 + provider.aws v2.23.0
Kindly help to resolve this.