Commit 00168f57 authored by Beckybrannan's avatar Beckybrannan

Cleaning up commented out resources

parent fc238daf
......@@ -19,30 +19,11 @@ variable "admin" {
default = "0"
}
# variable "terraform_version" {}
#############################################################################################################
# IAM Role, Policy and Attachment
#############################################################################################################
# data "template_file" "assume_role" {
# template = "${file("${path.module}/assume_role.json")}"
# vars {
# source_account_id = "${var.source_account_id}"
# }
# }
# resource "aws_iam_role" "role" {
# count = terraform.required_version < "0.12.0" ? 1 : 0
# name = "${var.name}"
# assume_role_policy = "${data.template_file.assume_role.rendered}"
# tags = {
# TerraformVersion = "< 0.12.0"
# }
# lifecycle { create_before_destroy = true }
# }
resource "aws_iam_role" "role" {
# count = var.terraform_version > "0.12.0" ? 1 : 0
name = "${var.name}"
assume_role_policy = templatefile("${path.module}/assume_role.json", { source_account_id = var.source_account_id })
tags = {
......
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