-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_workspaces_directory: Workspaces Creation Properties #14577
aws_workspaces_directory: Workspaces Creation Properties #14577
Conversation
b1c175f
to
3bf186a
Compare
3bf186a
to
69a9a22
Compare
69a9a22
to
b79c6aa
Compare
$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsWorkspacesDirectory_workspaceCreationProperties\|TestAccAwsWorkspacesDirectory_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsWorkspacesDirectory_workspaceCreationProperties\|TestAccAwsWorkspacesDirectory_basic -timeout 120m
=== RUN TestAccAwsWorkspacesDirectory_basic
=== PAUSE TestAccAwsWorkspacesDirectory_basic
=== RUN TestAccAwsWorkspacesDirectory_workspaceCreationProperties
=== PAUSE TestAccAwsWorkspacesDirectory_workspaceCreationProperties
=== CONT TestAccAwsWorkspacesDirectory_basic
=== CONT TestAccAwsWorkspacesDirectory_workspaceCreationProperties
--- PASS: TestAccAwsWorkspacesDirectory_workspaceCreationProperties (612.80s)
--- PASS: TestAccAwsWorkspacesDirectory_basic (677.98s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 678.026s |
b79c6aa
to
b87c6a3
Compare
@DrFaust92 Could you review also? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments
b87c6a3
to
4631622
Compare
0f5b88b
to
dcbf7af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quick comment and ill start running tests to verify.
@@ -120,8 +153,8 @@ func resourceAwsWorkspacesDirectoryCreate(d *schema.ResourceData, meta interface | |||
|
|||
input := &workspaces.RegisterWorkspaceDirectoryInput{ | |||
DirectoryId: aws.String(directoryId), | |||
EnableSelfService: aws.Bool(false), // this is handled separately below | |||
EnableWorkDocs: aws.Bool(false), | |||
EnableSelfService: aws.Bool(true), // this is handled separately below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not familiar with workspapces, whats the reason these are change to true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnableSelfService
attribute determines self-service capabilities enable/disable status for all workspaces in the particular workspaces directory. For example, with enabled self-service permissions, workspaces administrator can allow workspace user (client) to change the compute type or volume size without administrator's involvement (on-demand).
Here I've changed it from false
to true
for the same reason as EnableWorkDocs
attribute below – I thought it couldn't be changed after directory creation. However, self-service permissions can be changed both with ModifySelfservicePermissions
API call and AWS Management Console at any time. I'll return it back to false
to preserve backward compatibility. Thank you for your thorough review.
P.S. If EnableSelfService
attribute is set to false
, it doesn't mean all attributes behind it are set to false
too.
6bd63f8
to
0e8d1dc
Compare
getting
|
@DrFaust92 Please check out "AWS WorkSpaces Example" page. Do you think we should manage this role in test within Terraform code? References |
@Tensho I believe we opted out of managing that IAM Role in the test configurations since it would force us to serialize all the tests, which already take a very long time. |
getting errors:
|
31190e5
to
c783478
Compare
Related #14332 |
LGTM (except lint error)
|
c783478
to
e5910ae
Compare
12c15e2
to
266f1fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM 🚀 Thanks @Tensho Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAwsWorkspacesDirectory'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsWorkspacesDirectory -timeout 120m
=== RUN TestAccAwsWorkspacesDirectory_basic
=== PAUSE TestAccAwsWorkspacesDirectory_basic
=== RUN TestAccAwsWorkspacesDirectory_disappears
=== PAUSE TestAccAwsWorkspacesDirectory_disappears
=== RUN TestAccAwsWorkspacesDirectory_subnetIds
=== PAUSE TestAccAwsWorkspacesDirectory_subnetIds
=== RUN TestAccAwsWorkspacesDirectory_tags
=== PAUSE TestAccAwsWorkspacesDirectory_tags
=== RUN TestAccAwsWorkspacesDirectory_selfServicePermissions
=== PAUSE TestAccAwsWorkspacesDirectory_selfServicePermissions
=== RUN TestAccAwsWorkspacesDirectory_workspaceCreationProperties
=== PAUSE TestAccAwsWorkspacesDirectory_workspaceCreationProperties
=== CONT TestAccAwsWorkspacesDirectory_basic
=== CONT TestAccAwsWorkspacesDirectory_selfServicePermissions
=== CONT TestAccAwsWorkspacesDirectory_subnetIds
=== CONT TestAccAwsWorkspacesDirectory_tags
=== CONT TestAccAwsWorkspacesDirectory_workspaceCreationProperties
=== CONT TestAccAwsWorkspacesDirectory_disappears
--- PASS: TestAccAwsWorkspacesDirectory_selfServicePermissions (635.80s)
--- PASS: TestAccAwsWorkspacesDirectory_workspaceCreationProperties (639.71s)
--- PASS: TestAccAwsWorkspacesDirectory_basic (644.66s)
--- PASS: TestAccAwsWorkspacesDirectory_disappears (687.79s)
--- PASS: TestAccAwsWorkspacesDirectory_subnetIds (695.49s)
--- PASS: TestAccAwsWorkspacesDirectory_tags (737.19s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 739.056s Note that this functionality is not available in GovCloud due to Simple AD Creation not being available. |
This has been released in version 3.11.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #12737
Closes #14276
Release note for CHANGELOG:
Acceptance Tests
resource aws_workspaces_directory
data aws_workspaces_directory
References