fbuchmeier-abi / terraform-aws-iam-role-cross-account-trusting

This is used to trust other accounts to assume a role in the target account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-iam-role-cross-account-trusting

Creates a role that can be assumed by another principal (usually in another account, but could be user or role) to act as that role with permissions from the attached policies.

This is the TRUSTING side. You will still need to create a policy on the TRUSTED side that allows users in that account to assume the role

Example Usage:

module "iam_role_cross_account_trusting_admin" {
  source = "StratusGrid/iam-role-cross-account-trusting/aws"
  version = "2.0.0"
  role_name = "cross-account-role-admin"
  principal_arns = ["arn:aws:iam::ACCOUNT_ID:root"]
  policy_arns = ["arn:aws:iam::aws:policy/AdministratorAccess"]
  input_tags = merge(local.common_tags, {})
  require_mfa = false
}

About

This is used to trust other accounts to assume a role in the target account

License:Apache License 2.0


Languages

Language:HCL 100.0%