Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ module "my_instance" {
| <a name="input_state"></a> [state](#input_state) | State of the server. Default to 'started'. Possible values are: 'started', 'stopped' or 'standby'. | `string` | `"started"` | no |
| <a name="input_tags"></a> [tags](#input_tags) | Tags associated with the server and dedicated ip address. | `list(string)` | `[]` | no |
| <a name="input_zone"></a> [zone](#input_zone) | The zone in which the instance should be created. Ressource will be created in the zone set at the provider level if null. | `string` | `null` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_ip4"></a> [ip4](#output_ip4) | IPv4 address of the intance. |
| <a name="output_ip6"></a> [ip6](#output_ip6) | IPv6 address of the instance. |
| <a name="output_name"></a> [name](#output_name) | Name of the instance. |
<!-- END_TF_DOCS -->

## Authors
Expand Down
14 changes: 14 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
output "ip4" {
description = "IPv4 address of the intance."
value = var.enable_public_ipv4 ? scaleway_instance_server.this.public_ip : scaleway_instance_server.this.private_ip
}

output "ip6" {
description = "IPv6 address of the instance."
value = scaleway_instance_server.this.ipv6_address
}

output "name" {
description = "Name of the instance."
value = scaleway_instance_server.this.name
}