From ff66c1090e8db3ecf9a0d8f93a4a910b801bb958 Mon Sep 17 00:00:00 2001 From: Dean Oren Date: Thu, 16 Feb 2023 15:19:32 +0100 Subject: [PATCH] fix docs --- docs/data-sources/postgres_flex_user.md | 8 +++----- docs/resources/mongodb_flex_instance.md | 2 +- .../stackit_postgres_flex_user/data-source.tf | 6 ++---- .../resources/stackit_mongodb_flex_instance/resource.tf | 2 +- .../internal/data-sources/postgres-flex/user/schema.go | 2 +- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/data-sources/postgres_flex_user.md b/docs/data-sources/postgres_flex_user.md index b7fa8e25..998753b5 100644 --- a/docs/data-sources/postgres_flex_user.md +++ b/docs/data-sources/postgres_flex_user.md @@ -30,10 +30,8 @@ Data source for Postgres Flex user ```terraform resource "stackit_postgres_flex_instance" "example" { - name = "example" - project_id = var.project_id - machine_type = "c1.2" - version = "14" + name = "example" + project_id = var.project_id } resource "stackit_postgres_flex_user" "example" { @@ -62,6 +60,6 @@ data "stackit_postgres_flex_user" "example" { - `host` (String) Specifies the allowed user hostname - `port` (Number) Specifies the port - `roles` (List of String) Specifies the roles assigned to the user -- `username` (String) Specifies the user's username +- `username` (String) Specifies the username diff --git a/docs/resources/mongodb_flex_instance.md b/docs/resources/mongodb_flex_instance.md index f414ee41..32800bd2 100644 --- a/docs/resources/mongodb_flex_instance.md +++ b/docs/resources/mongodb_flex_instance.md @@ -32,7 +32,7 @@ Manages MongoDB Flex instances resource "stackit_mongodb_flex_instance" "example" { name = "example" project_id = "example" - machine_type = "C1.1" + machine_type = "1.1" } ``` diff --git a/examples/data-sources/stackit_postgres_flex_user/data-source.tf b/examples/data-sources/stackit_postgres_flex_user/data-source.tf index ec64dc00..04d6685d 100644 --- a/examples/data-sources/stackit_postgres_flex_user/data-source.tf +++ b/examples/data-sources/stackit_postgres_flex_user/data-source.tf @@ -1,8 +1,6 @@ resource "stackit_postgres_flex_instance" "example" { - name = "example" - project_id = var.project_id - machine_type = "c1.2" - version = "14" + name = "example" + project_id = var.project_id } resource "stackit_postgres_flex_user" "example" { diff --git a/examples/resources/stackit_mongodb_flex_instance/resource.tf b/examples/resources/stackit_mongodb_flex_instance/resource.tf index 17b848cd..dfc61d2c 100644 --- a/examples/resources/stackit_mongodb_flex_instance/resource.tf +++ b/examples/resources/stackit_mongodb_flex_instance/resource.tf @@ -1,5 +1,5 @@ resource "stackit_mongodb_flex_instance" "example" { name = "example" project_id = "example" - machine_type = "C1.1" + machine_type = "1.1" } diff --git a/stackit/internal/data-sources/postgres-flex/user/schema.go b/stackit/internal/data-sources/postgres-flex/user/schema.go index 52b2d5e9..fa3318f5 100644 --- a/stackit/internal/data-sources/postgres-flex/user/schema.go +++ b/stackit/internal/data-sources/postgres-flex/user/schema.go @@ -46,7 +46,7 @@ func (d *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, r }, }, "username": schema.StringAttribute{ - Description: "Specifies the user's username", + Description: "Specifies the username", Computed: true, }, "host": schema.StringAttribute{