iam-policy

bryan-rhm/iam-policy/aws

Terraform Module HCL AWS

Terraform AWS IAM Policy module

Install
module "iam-policy" {
source = "bryan-rhm/iam-policy/aws"
version = "2.0.0"
}
plain text: /constructs/tfmod-bryan-rhm-iam-policy-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform IAM policy module Requirements | Name | Version | |------|---------| | terraform | >= 0.13.4 | | aws | >= 3.43.0 | Providers | Name | Version | |------|---------| | aws | >= 3.43.0 | Basic Usage ``hcl module "iam_policy" { source = "./modules/iam-policy" policy_name = "some_name" policy_description = "Some description" statements = [ { sid = "AllowS3" effect = "Allow" actions = [ "s3:ListBucket" "s3:GetObject", "s3:PutObject", ] resources = ["*"] } ] } ` Resources | Name | Type | |------|------| | aws_iam_policy.this | resource | | aws_iam_policy_document.this | data source | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | policy\_description | Description for the IAM policy being created | string | "Created by Terraf

Inputs (3)
NameTypeDescriptionDefault
policy_namestringThe name of the IAM policy required
policy_descriptionstringDescription for the IAM policy being created"Created by Terraform"
statementslist(object({ sid A list of nested maps for the statements and elements required to build the IAM []
Outputs (1)
output — IAM policy attributes
Resources (1)
aws_iam_policy
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars1
Forks0
Total downloads4.5k
Inputs3
Outputs1
Resources1
LicenseApache-2.0
Namespacebryan-rhm
Updated