From c0f8bc450e1e456f104e839c4c59130b777bba9a Mon Sep 17 00:00:00 2001 From: Pavels Veretennikovs Date: Tue, 7 May 2019 23:33:36 +0300 Subject: [PATCH] fix: remove "current" argument from aws_region (#40) * fix: remove "current" argument from aws_region * fix: CF output notation --- main.tf | 4 +--- outputs.tf | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index 775d99f..a6ec9a2 100644 --- a/main.tf +++ b/main.tf @@ -1,6 +1,4 @@ -data "aws_region" "default" { - current = true -} +data "aws_region" "default" {} module "label" { source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.1" diff --git a/outputs.tf b/outputs.tf index 5a10fe8..7f82670 100644 --- a/outputs.tf +++ b/outputs.tf @@ -19,6 +19,6 @@ output "security_group_id" { } output "sns_topic_arn" { - value = "${aws_cloudformation_stack.sns.outputs.TopicArn}" + value = "${aws_cloudformation_stack.sns.outputs["TopicArn"]}" description = "Backup notification SNS topic ARN" }