Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2021
1 parent 7beb790 commit 3dd3f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iam-saml/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ locals {
saml_ew_url = "https://signin.aws.amazon.com/saml"
saml_gov_url = "https://signin.amazonaws-us-gov.com/saml"
saml_url = local.account_environment == "gov" ? local.saml_gov_url : local.saml_ew_url
saml_metadata_file = file("${path.root}/setup/metadata.xml")
saml_metadata_file = "${path.root}/setup/metadata.xml"
saml_metadata_file_exists = fileexists(local.saml_metadata_file)

base_tags = {
Expand All @@ -65,7 +65,7 @@ resource "null_resource" "saml_metadata" {
resource "aws_iam_saml_provider" "saml" {
count = local.saml_metadata_file_exists ? 1 : 0
name = var.saml_provider_name
saml_metadata_document = local.saml_metadata_file_exists ? local.saml_metadata_file : ""
saml_metadata_document = local.saml_metadata_file_exists ? file(local.saml_metadata_file) : ""
depends_on = [null_resource.saml_metadata]

# when the provider supports tags, enable this section
Expand Down

0 comments on commit 3dd3f5d

Please sign in to comment.