Skip to content

Commit

Permalink
Add availability zone information to nodes (#291)
Browse files Browse the repository at this point in the history
### WHY are these changes introduced?

Request #288 
to add availability zone information to all nodes.

### WHAT is this pull request doing?

Add availability zone information to nodes data source.

### HOW can this pull request be tested?

Manual checked 1-3 nodes changes for AWS (including Google and Azure). 
AZ id updated automatically for the data source when subscription plan changed.
  • Loading branch information
tbroden84 authored Jul 30, 2024
1 parent a20afd9 commit 350c4e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cloudamqp/data_source_cloudamqp_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func dataSourceNodes() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"availability_zone": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*

Expand Down

0 comments on commit 350c4e4

Please sign in to comment.