kv-for-application
ausmartway/kv-for-application/vault
A module that can onboard an Application with a list of environment associated
terraform-vault-kv-for-application Terraform module that creates kv2 secrets engine for application per enviroment, along with secrets provider/consumer/admin policies. Usage ``terraform module "vault_app_module_APP000001" { source = "ausmartway/terraform-vault-kv-for-application" version = "0.4.1" appname = "APP000001" enable_approle = true enviroments=["production","dev","test","sit","svt"] } ` or, using yaml file as variable input: `terraform locals { # Take a directory of YAML files, read each one that matches naming pattern and bring them in to Terraform's native data set inputappvars = [for f in fileset(path.module, "applications/{app}*.yaml") : yamldecode(file(f))] # Take that data set and format it so that it can be used with the for_each command by converting it to a map where eac
| Name | Type | Description | Default |
|---|---|---|---|
| appname | string | Name of the Application to be onboarded | required |
| enviroments | list | list of enviroments | [
"prod",
"dev"
] |
| approle_path | string | The path of AppRole auth backend, eg, approle | "approle" |
| enable_approle | bool | If approle roles should be enabled for the application | true |