Skip to content

Commit

Permalink
Fix the DEPRECATED warnings
Browse files Browse the repository at this point in the history
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 hashicorp/terraform-provider-aws#3157
  • Loading branch information
jasonsattler committed Mar 2, 2018
1 parent f7c86c1 commit 34d36ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions modules/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
4 changes: 1 addition & 3 deletions modules/services/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 34d36ca

Please sign in to comment.