Skip to content

Commit

Permalink
Add missing datacenters attribute to databases data source
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Jun 22, 2022
1 parent 867aa72 commit 80cd687
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Read-Only:
- `cloud_provider` (String)
- `cqlsh_url` (String)
- `data_endpoint_url` (String)
- `datacenters` (Map of String)
- `grafana_url` (String)
- `graphql_url` (String)
- `id` (String)
Expand Down
8 changes: 8 additions & 0 deletions internal/provider/data_source_databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ func dataSourceDatabases() *schema.Resource {
Type: schema.TypeString,
},
},
"datacenters": {
Description: "Map of Datacenter IDs. The map key is \"cloud_provider.region\". Example: \"GCP.us-east4\".",
Type: schema.TypeMap,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
},
},
},
Expand Down

0 comments on commit 80cd687

Please sign in to comment.