Generates an IAM policy document with permissons to access a list of secrets from AWS Secrets Manager.
Example:
module "secrets_access" {
source = "github.com/andreswebs/terraform-aws-secrets-access-policy-document"
secret_names = [
"password",
"token",
"etc"
]
}
## --> use module.secrets_access.json
Name | Description | Type | Default | Required |
---|---|---|---|---|
secret_names | List of friendly names of the allowed secrets | list(string) |
n/a | yes |
No modules.
Name | Description |
---|---|
json | The IAM Policy document JSON contents |
secret_arns | List of allowed secret ARNs |
secret_names | List of friendly names of the allowed secrets |
Name | Version |
---|---|
aws | >= 3.50.0 |
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 3.50.0 |
Name | Type |
---|---|
aws_caller_identity.current | data source |
aws_iam_policy_document.this | data source |
aws_partition.current | data source |
aws_region.current | data source |
Andre Silva @andreswebs
This project is licensed under the Unlicense.