From 9165fe129fa43869610cd9f6158d06cc6f71c6f3 Mon Sep 17 00:00:00 2001 From: Andrew Babichev Date: Thu, 1 Oct 2020 11:17:36 +0300 Subject: [PATCH] Back to disabled self-service permissions --- aws/resource_aws_workspaces_directory.go | 2 +- aws/resource_aws_workspaces_directory_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aws/resource_aws_workspaces_directory.go b/aws/resource_aws_workspaces_directory.go index 63aeaadad71..f371e08d948 100644 --- a/aws/resource_aws_workspaces_directory.go +++ b/aws/resource_aws_workspaces_directory.go @@ -153,7 +153,7 @@ func resourceAwsWorkspacesDirectoryCreate(d *schema.ResourceData, meta interface input := &workspaces.RegisterWorkspaceDirectoryInput{ DirectoryId: aws.String(directoryId), - EnableSelfService: aws.Bool(true), // this is handled separately below + EnableSelfService: aws.Bool(false), // this is handled separately below EnableWorkDocs: aws.Bool(true), Tenancy: aws.String(workspaces.TenancyShared), Tags: tags, diff --git a/aws/resource_aws_workspaces_directory_test.go b/aws/resource_aws_workspaces_directory_test.go index b22e9e3341c..e57e2b4fee2 100644 --- a/aws/resource_aws_workspaces_directory_test.go +++ b/aws/resource_aws_workspaces_directory_test.go @@ -83,11 +83,11 @@ func TestAccAwsWorkspacesDirectory_basic(t *testing.T) { resource.TestCheckResourceAttrPair(resourceName, "iam_role_id", iamRoleDataSourceName, "arn"), resource.TestCheckResourceAttrSet(resourceName, "registration_code"), resource.TestCheckResourceAttr(resourceName, "self_service_permissions.#", "1"), - resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.change_compute_type", "true"), - resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.increase_volume_size", "true"), - resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.rebuild_workspace", "true"), + resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.change_compute_type", "false"), + resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.increase_volume_size", "false"), + resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.rebuild_workspace", "false"), resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.restart_workspace", "true"), - resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.switch_running_mode", "true"), + resource.TestCheckResourceAttr(resourceName, "self_service_permissions.0.switch_running_mode", "false"), resource.TestCheckResourceAttr(resourceName, "subnet_ids.#", "2"), resource.TestCheckResourceAttr(resourceName, "tags.%", "0"), resource.TestCheckResourceAttr(resourceName, "workspace_creation_properties.#", "1"),