Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #206 from anouarchattouna/fixing_interpolation_dep…
Browse files Browse the repository at this point in the history
…recation_warnings

Fixed interpolation deprecation warnings
  • Loading branch information
brikis98 authored Jan 19, 2021
2 parents 9ae24e7 + d1121f2 commit ab06327
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ module "consul_servers" {
cluster_tag_key = var.cluster_tag_key
cluster_tag_value = var.cluster_name

ami_id = "${var.ami_id == null ? data.aws_ami.consul.image_id : var.ami_id}"
user_data = "${data.template_file.user_data_server.rendered}"
ami_id = var.ami_id == null ? data.aws_ami.consul.image_id : var.ami_id
user_data = data.template_file.user_data_server.rendered

vpc_id = data.aws_vpc.default.id
subnet_ids = data.aws_subnet_ids.default.ids
Expand Down Expand Up @@ -131,8 +131,8 @@ module "consul_clients" {
cluster_tag_key = "consul-clients"
cluster_tag_value = var.cluster_name

ami_id = "${var.ami_id == null ? data.aws_ami.consul.image_id : var.ami_id}"
user_data = "${data.template_file.user_data_client.rendered}"
ami_id = var.ami_id == null ? data.aws_ami.consul.image_id : var.ami_id
user_data = data.template_file.user_data_client.rendered

vpc_id = data.aws_vpc.default.id
subnet_ids = data.aws_subnet_ids.default.ids
Expand Down Expand Up @@ -167,7 +167,7 @@ data "template_file" "user_data_client" {

data "aws_vpc" "default" {
default = var.vpc_id == null ? true : false
id = "${var.vpc_id}"
id = var.vpc_id
}

data "aws_subnet_ids" "default" {
Expand Down

0 comments on commit ab06327

Please sign in to comment.