/terraform-aws-secrets-access-policy-document

IAM policy document with permissons to access a list of secrets from AWS Secrets Manager

Primary LanguageHCLThe UnlicenseUnlicense

terraform-aws-secrets-access-policy-document

Generates an IAM policy document with permissons to access a list of secrets from AWS Secrets Manager.

Usage

Example:

module "secrets_access" {
  source = "github.com/andreswebs/terraform-aws-secrets-access-policy-document"
  secret_names = [
    "password",
    "token",
    "etc"
  ]
}

## --> use module.secrets_access.json

Inputs

Name Description Type Default Required
secret_names List of friendly names of the allowed secrets list(string) n/a yes

Modules

No modules.

Outputs

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

Providers

Name Version
aws >= 3.50.0

Requirements

Name Version
terraform >= 1.0.0
aws >= 3.50.0

Resources

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

Authors

Andre Silva @andreswebs

License

This project is licensed under the Unlicense.