From 5823dd8dda344c08f5cf995b28e65ed2ad1f8bb0 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 1 Apr 2021 08:47:25 -0400 Subject: [PATCH] fix --- iam-saml/main.tf | 2 +- iam-saml/outputs.tf | 2 +- iam-saml/policy_data.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iam-saml/main.tf b/iam-saml/main.tf index 3d8bb57..e82bf1f 100644 --- a/iam-saml/main.tf +++ b/iam-saml/main.tf @@ -62,7 +62,7 @@ resource "null_resource" "saml_metadata" { } resource "aws_iam_saml_provider" "saml" { - count = fileexists(local.saml_metadata_file) ? 1 : 0 + # count = fileexists(local.saml_metadata_file) ? 1 : 0 name = var.saml_provider_name saml_metadata_document = fileexists(local.saml_metadata_file) ? file(local.saml_metadata_file) : file("${path.module}/empty_metadata.xml") depends_on = [null_resource.saml_metadata] diff --git a/iam-saml/outputs.tf b/iam-saml/outputs.tf index 5d383b4..0ec4f5e 100644 --- a/iam-saml/outputs.tf +++ b/iam-saml/outputs.tf @@ -1,6 +1,6 @@ output "saml_provider" { description = "SAML Provider ARN" - value = aws_iam_saml_provider.saml[0].arn + value = aws_iam_saml_provider.saml.arn } output "saml_assume_policy" { diff --git a/iam-saml/policy_data.tf b/iam-saml/policy_data.tf index 07ecfdf..fa0d26f 100644 --- a/iam-saml/policy_data.tf +++ b/iam-saml/policy_data.tf @@ -6,7 +6,7 @@ data "aws_iam_policy_document" "saml_assume" { principals { type = "Federated" - identifiers = [aws_iam_saml_provider.saml[0].arn] + identifiers = [aws_iam_saml_provider.saml.arn] } condition {