Skip to content
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: register directory with workspaces #26721

Closed
2 tasks
ruckc opened this issue Aug 11, 2023 · 5 comments
Closed
2 tasks

aws_workspaces: register directory with workspaces #26721

ruckc opened this issue Aug 11, 2023 · 5 comments
Labels
@aws-cdk/aws-workspaces Related Amazon WorkSpaces closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. feature-request A feature should be added or improved. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@ruckc
Copy link

ruckc commented Aug 11, 2023

Describe the feature

In trying to provide a fully automated AWS workspaces, directory deployment is impossible. I need the ability to register a directory service with workspaces in the CDK.

Use Case

Currently with AWS-CDK, it is impossible to deploy a Directory Service and new WorkSpaces in the same stack. The Directory Service has to be registered with the Workspace, and there are no L1 Constructs to do so.

Proposed Solution

Create a CfnWorkspaceDirectory construct that ties directory service ID.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.90

Environment details (OS name and version, etc.)

Ubuntu 22.04

@ruckc ruckc added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 11, 2023
@github-actions github-actions bot added the @aws-cdk/aws-workspaces Related Amazon WorkSpaces label Aug 11, 2023
@pahud
Copy link
Contributor

pahud commented Aug 11, 2023

Can you elaborate more on the details?

Looks like workspace allows you to specify the directory ID

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-workspace.html#cfn-workspaces-workspace-directoryid

Can you create the directory first and pass the ID to the workspace?

@pahud pahud added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 11, 2023
@github-actions
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Aug 13, 2023
@niallwalsh
Copy link

niallwalsh commented Jan 25, 2024

@pahud The problem is not the passing of the ID, the problem is that the directory needs to be registered first in order to be found. There is no process in constructs to do so; it has to be done via CLI commands.

Here is the error if you just try to pass the directory ID without registering it:
The stack named X failed to deploy: UPDATE_ROLLBACK_COMPLETE: The specified directory could not be found in the specified region.

@ruckc
Copy link
Author

ruckc commented Jan 25, 2024

@pahud - my project ended up using terraform where they provide a mechanism to register a directory in Workspaces

@jhony-ourlegup
Copy link

jhony-ourlegup commented Jun 19, 2024

This still not be implemented, using terraform, cli or UI change to register the directory defies the purpose to do via CDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-workspaces Related Amazon WorkSpaces closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. feature-request A feature should be added or improved. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants