Skip to content

Commit

Permalink
feat: Add template name to output (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karina5005 authored Nov 8, 2023
1 parent dfa689f commit b835aea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ No modules.

| Name | Type |
|------|------|
| [huaweicloud_lts_notification_template.test](https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/lts_notification_template) | resource |
| [huaweicloud_lts_notification_template.template](https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/lts_notification_template) | resource |

## Inputs

Expand All @@ -36,5 +36,7 @@ No modules.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <a name="output_name"></a> [name](#output\_name) | The name of a created template |
<!-- END_TF_DOCS -->
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ locals {
name = var.name_postfix == null ? var.name : format("%s-%s", var.name, var.name_postfix)
}

resource "huaweicloud_lts_notification_template" "test" {
resource "huaweicloud_lts_notification_template" "template" {
name = var.name
source = var.template_source
locale = var.locale
Expand Down
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output "name" {
description = "The name of a created template"
value = huaweicloud_lts_notification_template.template.name
}

0 comments on commit b835aea

Please sign in to comment.