-
Notifications
You must be signed in to change notification settings - Fork 0
docs(azure-kv): update docs and added examples #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| formatter: "markdown" # this is required | ||
|
|
||
| version: "" | ||
|
|
||
| header-from: docs/header.md | ||
| footer-from: docs/footer.md | ||
|
|
||
| recursive: | ||
| enabled: false | ||
| path: modules | ||
| include-main: true | ||
|
|
||
| sections: | ||
| hide: [] | ||
| show: [] | ||
|
|
||
| content: "" | ||
|
|
||
| output: | ||
| file: "README.md" | ||
| mode: inject | ||
| template: |- | ||
| <!-- BEGIN_TF_DOCS --> | ||
| {{ .Content }} | ||
| <!-- END_TF_DOCS --> | ||
|
|
||
| output-values: | ||
| enabled: false | ||
| from: "" | ||
|
|
||
| sort: | ||
| enabled: true | ||
| by: name | ||
|
|
||
| settings: | ||
| anchor: true | ||
| color: true | ||
| default: true | ||
| description: false | ||
| escape: true | ||
| hide-empty: false | ||
| html: true | ||
| indent: 2 | ||
| lockfile: true | ||
| read-comments: true | ||
| required: true | ||
| sensitive: true | ||
| type: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Basic example: Azure Key Vault with a simple access policy | ||
|
|
||
| module "azure_kv" { | ||
| source = "../../" | ||
|
|
||
| name = "example-kv" | ||
| resource_group = "example-rg" | ||
| sku_name = "standard" | ||
| enabled_for_disk_encryption = true | ||
| soft_delete_retention_days = 7 | ||
| purge_protection_enabled = true | ||
| enable_rbac_authorization = false | ||
|
|
||
| access_policies = [ | ||
| { | ||
| type = "User" | ||
| name = "example-user" | ||
| object_id = "00000000-0000-0000-0000-000000000000" | ||
| key_permissions = ["Get", "List"] | ||
| secret_permissions = ["Get", "List", "Set"] | ||
| certificate_permissions = [] | ||
| storage_permissions = [] | ||
| } | ||
| ] | ||
|
|
||
| tags = { | ||
| environment = "dev" | ||
| application = "example" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Basic example values for azure-kv module | ||
|
|
||
| name: example-kv | ||
| resource_group: example-rg | ||
| sku_name: standard | ||
| enabled_for_disk_encryption: true | ||
| soft_delete_retention_days: 7 | ||
| purge_protection_enabled: true | ||
| enable_rbac_authorization: false | ||
|
|
||
| access_policies: | ||
| - type: User | ||
| name: example-user | ||
| object_id: 00000000-0000-0000-0000-000000000000 | ||
| key_permissions: | ||
| - Get | ||
| - List | ||
| secret_permissions: | ||
| - Get | ||
| - List | ||
| - Set | ||
| certificate_permissions: [] | ||
| storage_permissions: [] | ||
|
|
||
| tags: | ||
| environment: dev | ||
| application: example | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,15 @@ | ||||||
| ## Examples | ||||||
|
|
||||||
| For detailed examples, refer to the [module examples](https://github.com/prefapp/tfm/tree/main/modules/azure-kv/_examples): | ||||||
|
|
||||||
| - [basic](https://github.com/prefapp/tfm/tree/main/modules/azure-kv/_examples/basic) - Key Vault with basic access policies and optional RBAC. | ||||||
|
|
||||||
| ## Resources and support | ||||||
|
|
||||||
| - [Official Azure Key Vault documentation](https://learn.microsoft.com/en-us/azure/key-vault/) | ||||||
| - [Terraform reference for azurerm_key_vault](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault) | ||||||
| - [Community support](https://github.com/prefapp/terraform-modules/discussions) | ||||||
|
||||||
| - [Community support](https://github.com/prefapp/terraform-modules/discussions) | |
| - [Community support](https://github.com/prefapp/tfm/discussions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses
type: User(capitalized), while the docs elsewhere in this PR use lowercase values likegroup,service_principal, anduser. Standardize the casing/value format across examples and docs to avoid confusing users and to ensure the example matches the documented accepted values.