Skip to content

Commit

Permalink
move data to policy_data.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2021
1 parent 81eddef commit 53d74d6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions iam-saml/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,3 @@ resource "aws_iam_saml_provider" "saml" {
# map("Name", local.provider_name),
# )
}

data "aws_iam_policy_document" "saml_assume" {
statement {
sid = "SAMLFederationCensusIdP"
effect = "Allow"
actions = ["sts:AssumeRoleWithSAML"]

principals {
type = "Federated"
identifiers = [aws_iam_saml_provider.saml.arn]
}

condition {
test = "StringEquals"
variable = "SAML:aud"
values = [local.saml_url]
}
}
}

0 comments on commit 53d74d6

Please sign in to comment.