From 2685be4e53b9f91638e48e4446c8c6bb448a35e7 Mon Sep 17 00:00:00 2001 From: jasonsattler Date: Fri, 2 Mar 2018 13:41:41 -0700 Subject: [PATCH] Fix the DEPRECATED warnings removing current will fix the messages. Warning: module.platform.module.ecs.data.aws_region.current: "current": [DEPRECATED] Defaults to current provider region if no other filtering is enabled You can find more info at https://github.com/terraform-providers/terraform-provider-aws/pull/3157 --- modules/ecs/variables.tf | 4 +--- modules/services/variables.tf | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/ecs/variables.tf b/modules/ecs/variables.tf index 4bad09a..5c0792b 100644 --- a/modules/ecs/variables.tf +++ b/modules/ecs/variables.tf @@ -11,9 +11,7 @@ variable "ssh_cidr_blocks" { description = "Comma delimited list of cidr blocks to allow SSH access from." } -data "aws_region" "current" { - current = true -} +data "aws_region" "current" {} data "aws_subnet" "ecs_subnet" { id = "${var.subnet_id}" diff --git a/modules/services/variables.tf b/modules/services/variables.tf index 61b3425..22a325c 100644 --- a/modules/services/variables.tf +++ b/modules/services/variables.tf @@ -56,9 +56,7 @@ variable "ssh_cidr_blocks" { description = "Comma delimited list of cidr blocks to allow SSH access from." } -data "aws_region" "current" { - current = true -} +data "aws_region" "current" {} data "aws_subnet" "subnet_1" { id = "${var.subnet_id_1}"