From 122e10d86fa6b4f75026a3e6048a1f8bbe56b348 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 22 May 2023 09:18:18 +0200 Subject: [PATCH] remove computed & update docs (#141) * remove computed from acl * Automated docs update --------- Co-authored-by: Dean Oren Co-authored-by: do87 --- docs/resources/mongodb_flex_instance.md | 2 +- stackit/internal/resources/mongodb-flex/instance/schema.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/resources/mongodb_flex_instance.md b/docs/resources/mongodb_flex_instance.md index e81bfbb2..0d9a21f1 100644 --- a/docs/resources/mongodb_flex_instance.md +++ b/docs/resources/mongodb_flex_instance.md @@ -41,13 +41,13 @@ resource "stackit_mongodb_flex_instance" "example" { ### Required +- `acl` (List of String) Access Control rules to whitelist IP addresses - `machine_type` (String) The Machine Type. Available options: `1.1` (1 CPU, 1 Memory), `1.2` (1 CPU, 2 Memory), `1.4` (1 CPU, 4 Memory), `1.8` (1 CPU, 8 Memory), `2.4` (2 CPU, 4 Memory), `2.8` (2 CPU, 8 Memory), `2.16` (2 CPU, 16 Memory), `4.8` (4 CPU, 8 Memory), `4.16` (4 CPU, 16 Memory), `4.32` (4 CPU, 32 Memory), `8.16` (8 CPU, 16 Memory), `8.32` (8 CPU, 32 Memory), `8.64` (8 CPU, 64 Memory), `16.32` (16 CPU, 32 Memory), `16.64` (16 CPU, 64 Memory) - `name` (String) Specifies the instance name. - `project_id` (String) The project ID the instance runs in. Changing this value requires the resource to be recreated. ### Optional -- `acl` (List of String) Access Control rules to whitelist IP addresses - `backup_schedule` (String) Specifies the backup schedule (cron style). - `labels` (Map of String) Instance Labels - `replicas` (Number) Number of replicas (Default is `1`). diff --git a/stackit/internal/resources/mongodb-flex/instance/schema.go b/stackit/internal/resources/mongodb-flex/instance/schema.go index 9a191a84..3ec28337 100644 --- a/stackit/internal/resources/mongodb-flex/instance/schema.go +++ b/stackit/internal/resources/mongodb-flex/instance/schema.go @@ -139,7 +139,6 @@ func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp Description: "Access Control rules to whitelist IP addresses", ElementType: types.StringType, Required: true, - Computed: true, }, "timeouts": common.Timeouts(ctx, timeouts.Opts{ Create: true,