-
Notifications
You must be signed in to change notification settings - Fork 0
docs(azure-event-hub): update docs and added examples #904
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 2 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 --> | ||||||||||
|
Comment on lines
+23
to
+25
|
||||||||||
| <!-- BEGIN_TF_DOCS --> | |
| {{ .Content }} | |
| <!-- END_TF_DOCS --> | |
| {{ .Content }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| module "azure_event_hub" { | ||
| source = "../../" | ||
|
|
||
| namespace = { | ||
| name = "example-namespace" | ||
| location = "westeurope" | ||
| resource_group_name = "example-rg" | ||
| sku = "Standard" | ||
| capacity = 1 | ||
| auto_inflate_enabled = false | ||
| identity_type = "SystemAssigned" | ||
| ruleset = { | ||
| default_action = "Allow" | ||
| public_network_access_enabled = true | ||
| trusted_service_access_enabled = true | ||
| virtual_network_rules = [] | ||
| ip_rules = [] | ||
| } | ||
| } | ||
|
|
||
| system_topic = { | ||
| example-topic = { | ||
| name = "example-system-topic" | ||
| location = "westeurope" | ||
| topic_type = "Microsoft.EventHub.namespaces" | ||
| source_resource_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.EventHub/namespaces/example-namespace" | ||
| } | ||
|
||
| } | ||
|
|
||
| eventhub = { | ||
| example-hub = { | ||
| name = "example-eventhub" | ||
| partition_count = 2 | ||
| message_retention = 7 | ||
| consumer_group_names = ["$Default"] | ||
| auth_rules = [ | ||
| { | ||
| name = "listen" | ||
| listen = true | ||
| send = false | ||
| manage = false | ||
| } | ||
| ] | ||
| event_subscription = null | ||
| system_topic_name = "example-system-topic" | ||
|
||
| } | ||
| } | ||
|
|
||
| tags_from_rg = false | ||
| tags = { | ||
| environment = "dev" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,40 @@ | ||||||
| namespace: | ||||||
| name: example-namespace | ||||||
| location: westeurope | ||||||
| resource_group_name: example-rg | ||||||
| sku: Standard | ||||||
| capacity: 1 | ||||||
| auto_inflate_enabled: false | ||||||
| identity_type: SystemAssigned | ||||||
| ruleset: | ||||||
| default_action: Allow | ||||||
| public_network_access_enabled: true | ||||||
| trusted_service_access_enabled: true | ||||||
| virtual_network_rules: [] | ||||||
| ip_rules: [] | ||||||
|
|
||||||
| system_topic: | ||||||
| example-topic: | ||||||
| name: example-system-topic | ||||||
| location: westeurope | ||||||
| topic_type: Microsoft.EventHub.namespaces | ||||||
| source_resource_id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.EventHub/namespaces/example-namespace | ||||||
|
Comment on lines
+16
to
+21
|
||||||
|
|
||||||
| eventhub: | ||||||
| example-hub: | ||||||
| name: example-eventhub | ||||||
| partition_count: 2 | ||||||
| message_retention: 7 | ||||||
| consumer_group_names: | ||||||
| - $Default | ||||||
| auth_rules: | ||||||
| - name: listen | ||||||
| listen: true | ||||||
| send: false | ||||||
| manage: false | ||||||
| event_subscription: null | ||||||
| system_topic_name: example-system-topic | ||||||
|
||||||
| system_topic_name: example-system-topic | |
| system_topic_name: example-topic |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
|
|
||
| ## Examples | ||
|
|
||
| For detailed examples, refer to the [module examples](https://github.com/prefapp/tfm/tree/main/modules/azure-event-hub/_examples): | ||
|
|
||
| - [basic](https://github.com/prefapp/tfm/tree/main/modules/azure-event-hub/_examples/basic) - Event Hub namespace with a basic event hub and optional system topic integration. | ||
|
|
||
| ## Additional resources | ||
|
|
||
| - [Azure Event Hubs](https://learn.microsoft.com/en-us/azure/event-hubs/) | ||
| - [Terraform AzureRM Provider - azurerm_eventhub](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/eventhub) | ||
| - [Terraform AzureRM Provider - azurerm_eventhub_namespace](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/eventhub_namespace) | ||
| - [Terraform AzureRM Provider - azurerm_eventgrid_system_topic](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/eventgrid_system_topic) | ||
| - [Official Terraform documentation](https://www.terraform.io/docs) | ||
|
|
||
| ## Support | ||
|
|
||
| For issues, questions, or contributions related to this module, please visit the repository’s issue tracker: [https://github.com/prefapp/tfm/issues](https://github.com/prefapp/tfm/issues) |
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.
Leaving
versionempty makes generated README output dependent on whichever terraform-docs version a contributor has installed, which can cause noisy diffs. Pin to a known-good terraform-docs version used by CI (and/or document the expected version) to keep docs generation deterministic.