diff --git a/README.md b/README.md index 29b0f4a..bd3eeb0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -36,5 +36,7 @@ No modules. ## Outputs -No outputs. +| Name | Description | +|------|-------------| +| [name](#output\_name) | The name of a created template | \ No newline at end of file diff --git a/main.tf b/main.tf index 272172f..ace8a37 100644 --- a/main.tf +++ b/main.tf @@ -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 diff --git a/outputs.tf b/outputs.tf index e69de29..59a242f 100644 --- a/outputs.tf +++ b/outputs.tf @@ -0,0 +1,4 @@ +output "name" { + description = "The name of a created template" + value = huaweicloud_lts_notification_template.template.name +} \ No newline at end of file