diff --git a/cloudamqp/data_source_cloudamqp_nodes.go b/cloudamqp/data_source_cloudamqp_nodes.go index e63f9009..10dc4478 100644 --- a/cloudamqp/data_source_cloudamqp_nodes.go +++ b/cloudamqp/data_source_cloudamqp_nodes.go @@ -63,6 +63,10 @@ func dataSourceNodes() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "availability_zone": { + Type: schema.TypeString, + Computed: true, + }, }, }, }, @@ -113,7 +117,8 @@ func validateNodesSchemaAttribute(key string) bool { "rmq_version", "disk_size", "additional_disk_size", - "hostname_internal": + "hostname_internal", + "availability_zone": return true } return false diff --git a/docs/data-sources/nodes.md b/docs/data-sources/nodes.md index 7dbeebee..6b2d8eca 100644 --- a/docs/data-sources/nodes.md +++ b/docs/data-sources/nodes.md @@ -42,6 +42,7 @@ The `nodes` block consist of * `configured` - Is the node configured? * `disk_size` - Subscription plan disk size * `additional_disk_size` - Additional added disk size +* `availability_zone` - Availability zone the node is hosted in. ***Note:*** *Total disk size = disk_size + additional_disk_size*