Commit 41694162 authored by Beckybrannan's avatar Beckybrannan

Cleaning up syntax for tf version > 0.11

parent b1254e56
......@@ -25,7 +25,7 @@ variable "admin" {
resource "aws_iam_role" "role" {
name = var.name
assume_role_policy = templatefile(path.module/assume_role.json, { source_account_id = var.source_account_id })
assume_role_policy = templatefile("${path.module}/assume_role.json", { source_account_id = var.source_account_id })
tags = {
TerraformVersion = "> 0.12.0"
}
......@@ -35,7 +35,7 @@ resource "aws_iam_role" "role" {
resource "aws_iam_policy" "steamhaus_apn" {
name = "SteamhausAPN"
description = "Steamhaus APN policy"
policy = file(path.module/steamhaus_apn_policy.json)
policy = "${file("${path.module}/steamhaus_apn_policy.json")}"
count = var.steamhaus_apn
lifecycle { create_before_destroy = true }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment