cross-account-role

clouddrove/cross-account-role/aws

Terraform Module HCL AWS

This terraform module is used to create an IAM Role to access another AWS account inventory.

Install
module "cross-account-role" {
source = "clouddrove/cross-account-role/aws"
version = "0.15.0"
}
plain text: /constructs/tfmod-clouddrove-cross-account-role-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform AWS Cross Account Role This terraform module is used for creating an IAM Role which can give permission to another AWS account for accessing it's inventory. We eat, drink, sleep and most importantly love DevOps. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy Bigger problems are always solved by breaking them into smaller manageable problems . Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller connected yet manageable pieces within the infrastructure. This module is basically combination of Terraform open source and includes automatation tests and examples. It also helps to create and improve your infrastruc

Inputs (15)
NameTypeDescriptionDefault
master_account_userstringThe ID of the master account to Read Only Access the current account. required
label_orderlist(any)Label order, e.g. `name`,`application`.[]
policystringPolicy ARN to attach to the role. By default it attaches `AdministratorAccess` m""
policy_enabledboolEnabled to create module or not.false
namestringName (e.g. `app` or `cluster`).""
enabledboolEnabled to create module or not.true
max_session_durationstring - (Optional) The maximum session duration (in seconds) that you want to set for"3600"
force_detach_policiesbool(Optional) Specifies to force detaching any policies the role has before destroyfalse
tagsmap(string)Additional tags (e.g. map(`BusinessUnit`,`XYZ`).{}
managedbystringManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."[email protected]"
policy_arnlist(string)Policy ARN to attach to the role. By default it attaches `AdministratorAccess` m[]
descriptionstringDescription of IAM Role."The role to grant permissions to this a
repositorystringTerraform current module repo"https://github.com/clouddrove/terraform
attributeslist(any)Additional attributes (e.g. `1`).[]
environmentstringEnvironment (e.g. `prod`, `dev`, `staging`).""
Outputs (4)
role_arn — The Amazon Resource Name (ARN) specifying the role.
tags — A mapping of tags to assign to the resource.
role_name — The name of the crated role.
role_id — The stable and unique string identifying the role.
Resources (3)
aws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version0.15.0
Cloud AWS
★ Stars13
Forks11
Total downloads17.6k
Inputs15
Outputs4
Resources3
LicenseApache-2.0
Namespaceclouddrove
Updated