Skip to content

Latest commit

 

History

History

aws-tf-iam-role

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

aws-tf-prowler-fargate/aws-tf-iam-role

Description

This Terraform module implements an AWS Identity and Access Management role that helps you assess your multi-account environment in AWS Organizations using Prowler security assessment tool deployed on AWS Fargate. The role is assumed by the Prowler deployment account and should be deployed to your management account and the member accounts you want to include in the assessment scope.

Module Components

  1. main.tf

    • Creates an IAM role assumed by Prowler deployment account.
    • Allows Prowler to write assessment report to a central S3 bucket.
  2. outputs.tf

  3. variables.tf

    • Defines the input variables for this Terraform module.
  4. data.tf

    • Defines the IAM policy document for the Prowler role.

Resources

Name Type
aws_iam_role Resource
aws_iam_policy Resource
aws_iam_policy_attachment Resource

Input Variables

All variable details can be found in aws-tf-prowler-fargate/aws-tf-iam-role. Refer to the file for default variable values.

Variable Name Description Required
deployment_accountid The AWS Account Id to deploy Prowler Yes
prowler_iamrole_name IAM role name to assign to prowler cross-account role Yes
prowler_s3 Enter the S3 Bucket for Prowler Reports. Format: prefix-awsaccount-awsregion Yes
tags A map of tags (key-value pairs) passed to resources. Yes

Outputs

All output details can be found in aws-tf-prowler-fargate/outputs.tf.

Output Name Description
aws_iam_role ARN of the Prowler IAM role