From a56ae99bdf3febbe26bc15b097721188e9fc2f22 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Thu, 11 Apr 2024 23:50:55 +0200 Subject: [PATCH] feat(outputs): add simple outputs name and id --- README.md | 5 ++++- outputs.tf | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 542c8e5..7ce304a 100644 --- a/README.md +++ b/README.md @@ -40,5 +40,8 @@ No modules. ### Outputs -No outputs. +| Name | Description | +|------|-------------| +| [id](#output_id) | The id of the security group | +| [name](#output_name) | The name of the security group | diff --git a/outputs.tf b/outputs.tf index e69de29..f9aab26 100644 --- a/outputs.tf +++ b/outputs.tf @@ -0,0 +1,9 @@ +output "name" { + value = openstack_networking_secgroup_v2.this.name + description = "The name of the security group" +} + +output "id" { + value = openstack_networking_secgroup_v2.this.id + description = "The id of the security group" +}