Skip to content

Commit 4d41b66

Browse files
authored
feat: Export IDs of the instance and its root volume (#69)
1 parent b569309 commit 4d41b66

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ module "my_instance" {
7474

7575
| Name | Description |
7676
|------|-------------|
77+
| <a name="output_id"></a> [id](#output_id) | ID of the instance. |
7778
| <a name="output_ip4"></a> [ip4](#output_ip4) | IPv4 address of the intance. |
7879
| <a name="output_ip6"></a> [ip6](#output_ip6) | IPv6 address of the instance. |
7980
| <a name="output_name"></a> [name](#output_name) | Name of the instance. |
81+
| <a name="output_root_volume"></a> [root_volume](#output_root_volume) | ID of the root volume. |
8082
<!-- END_TF_DOCS -->
8183

8284
## Authors

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ output "name" {
1212
description = "Name of the instance."
1313
value = scaleway_instance_server.this.name
1414
}
15+
16+
output "id" {
17+
description = "ID of the instance."
18+
value = scaleway_instance_server.this.id
19+
}
20+
21+
output "root_volume" {
22+
description = "ID of the root volume."
23+
value = scaleway_instance_server.this.root_volume
24+
}

0 commit comments

Comments
 (0)