locals.tf 567 B

1234567891011121314
  1. locals {
  2. # Just to shorten up some references
  3. aws_partition = data.aws_partition.current.partition
  4. aws_account = data.aws_caller_identity.current.account_id
  5. assume_role_policy = (length(var.trusted_arns) > 0) ? data.aws_iam_policy_document.okta_saml_plus_crossaccount_assume_role_policy.json : data.aws_iam_policy_document.okta_saml_assume_role_policy.json
  6. # Used in assume-role policies coming from SAML
  7. saml_signin_page = {
  8. "aws" = "https://signin.aws.amazon.com/saml"
  9. "aws-us-gov" = "https://signin.amazonaws-us-gov.com/saml"
  10. }
  11. }