diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 9153d6ce65..06fa841dca 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -65,3 +65,4 @@ jobs: go-version: ${{ env.GO_VERSION }} - uses: hashicorp/setup-terraform@v3 - run: go tool tfplugindocs validate + - run: go tool tfplugindocs generate diff --git a/internal/services/mongodb/instance.go b/internal/services/mongodb/instance.go index 3f287497e9..d8e805b415 100644 --- a/internal/services/mongodb/instance.go +++ b/internal/services/mongodb/instance.go @@ -189,16 +189,19 @@ func ResourceInstance() *schema.Resource { Schema: map[string]*schema.Schema{ "id": { Type: schema.TypeString, + Optional: true, Computed: true, Description: "ID of the public network", }, "port": { Type: schema.TypeInt, + Optional: true, Computed: true, Description: "TCP port of the endpoint", }, "dns_record": { Type: schema.TypeString, + Optional: true, Computed: true, Description: "The DNS record of your endpoint", }, diff --git a/internal/services/rdb/read_replica.go b/internal/services/rdb/read_replica.go index c9500cccb5..e20f4f3708 100644 --- a/internal/services/rdb/read_replica.go +++ b/internal/services/rdb/read_replica.go @@ -61,26 +61,31 @@ func ResourceReadReplica() *schema.Resource { "endpoint_id": { Type: schema.TypeString, Description: "UUID of the endpoint (UUID format).", + Optional: true, Computed: true, }, "ip": { Type: schema.TypeString, Description: "IPv4 address of the endpoint (IP address). Only one of ip and hostname may be set.", + Optional: true, Computed: true, }, "port": { Type: schema.TypeInt, Description: "TCP port of the endpoint.", + Optional: true, Computed: true, }, "name": { Type: schema.TypeString, Description: "Name of the endpoint.", + Optional: true, Computed: true, }, "hostname": { Type: schema.TypeString, Description: "Hostname of the endpoint. Only one of ip and hostname may be set.", + Optional: true, Computed: true, }, }, diff --git a/internal/services/redis/cluster.go b/internal/services/redis/cluster.go index d578d9d12d..46d499fe91 100644 --- a/internal/services/redis/cluster.go +++ b/internal/services/redis/cluster.go @@ -192,10 +192,12 @@ func ResourceCluster() *schema.Resource { Schema: map[string]*schema.Schema{ "id": { Type: schema.TypeString, + Optional: true, Computed: true, }, "port": { Type: schema.TypeInt, + Optional: true, Computed: true, Description: "TCP port of the endpoint", }, @@ -204,6 +206,7 @@ func ResourceCluster() *schema.Resource { Elem: &schema.Schema{ Type: schema.TypeString, }, + Optional: true, Computed: true, }, },