This Terraform module is responsible for provisioning CloudSploit IAM resources(IAM trust/roles).
This module is considered a Global module and only needs to be provisioned 1 time per AWS Account.
- Add this code to your provider file
- The account_id must be set & passed from the root module.
- The cloudsploit_external_id must be obtained from CloudSploit and different AWS accounts have different external IDs.
- The use_aws_gov can be set to a boolean value, it defaults to
false
module "cloudsploit" {
source = "git@github.com:cloudsploit/cloudsploit-terraform-scans.git"
account_id = "${var.account_id}"
cloudsploit_external_id = "${var.cloudsploit_external_id}"
}
- cloudsploit_cross_account_role_arn - Cloudsploit cross account trust role. This is only output if
use_aws_gov
is set tofalse
. - cloudsploit_cross_account_role_arn-gov - Cloudsploit cross account trust role for AWS gov. This is only output if
use_aws_gov
is set totrue
.