Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 1, 2021
1 parent 00040ec commit 5823dd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iam-saml/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion iam-saml/outputs.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion iam-saml/policy_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5823dd8

Please sign in to comment.