Skip to content

Commit

Permalink
feat: examples and datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb committed Aug 22, 2024
1 parent 3ce5ec9 commit 79f979a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/resources/biganimal_analytics_cluster/aws/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ resource "biganimal_analytics_cluster" "analytics_cluster" {
project_id = var.project_id
pause = false

#tags = [
# {
# tag_name = "wai-tag-3"
# color = "blue"
# },
# {
# tag_name = "wai-tag-4"
# },
#]

allowed_ip_ranges = [
{
cidr_block = "127.0.0.1/32"
Expand Down
17 changes: 17 additions & 0 deletions pkg/provider/data_source_analytics_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,23 @@ func (r *analyticsClusterDataSource) Schema(ctx context.Context, req datasource.
"Pausing a high availability cluster shuts down all cluster nodes",
Optional: true,
},
"tags": schema.SetNestedAttribute{
Description: "Assign existing tags or create tags to assign to this resource",
Computed: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"tag_id": schema.StringAttribute{
Computed: true,
},
"tag_name": schema.StringAttribute{
Computed: true,
},
"color": schema.StringAttribute{
Computed: true,
},
},
},
},
},
}
}
Expand Down

0 comments on commit 79f979a

Please sign in to comment.