kms-share-multi-accounts

devops-made-easy/kms-share-multi-accounts/aws

Terraform Module HCL AWS

Terraform module to create kms key and share access to multi accounts with IAM and Users

Install
module "kms-share-multi-accounts" {
source = "devops-made-easy/kms-share-multi-accounts/aws"
version = "2.0.0"
}
plain text: /constructs/tfmod-devops-made-easy-kms-share-multi-accounts-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform-aws-kms-share-multi-accounts module to create custom kms key and share access to multiple AWS accounts with option to add particular IAM Roles and Users Sample way of using this module > There are 2 ways to use this module. 1. Using default policy to create kms key and share to dest accounts `` module "kms_sharing" { source = "[email protected]:devops-made-easy/terraform-aws-kms-share-multi-accounts.git" version = "1.0.0" key_name = "devops-key-sharing" dest_account_ids = ["1111111", "222222", "333333"] dest_iam_roles = "arn:aws:iam::xxxxxx:role/dest_iam_role" src_account_ids = ["444444"] src_iam_roles = "arn:aws:iam::xxxxxx:role/src_iam_role" } ` 2. Using Custom policy provided to this module ` module "kms_sharing" { source = "[email protected]:devops-made-easy/terraform-aws-kms-share

Inputs (7)
NameTypeDescriptionDefault
src_account_idsstring required
key_namestring required
dest_account_idsstring required
dest_iam_roleslist(string)[]
src_iam_roleslist(string)[]
tagsmap{ "Owner": "devops" }
user_policystring""
Outputs (5)
key_arn
key_id
key_alias_id
key_alias_arn
policy
Resources (2)
aws_kms_aliasaws_kms_key
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars14
Forks8
Total downloads62.5k
Inputs7
Outputs5
Resources2
LicenseMIT
Namespacedevops-made-easy
Updated