_This issue was originally opened by @mootpt as hashicorp/terraform#10794. It was migrated here as part of the provider split. The original body of the issue is below._
Support for AWS Workspaces would be great, especially since there is existing support for AWS directory service directories in Terraform. Something like:
resource "aws_workspaces_workspace" {
bundle_id = "Some Bundle Id Here"
directory_id = "${aws_directory_service_directory.bar.id}"
user_name = "foo"
root_volume_encryption = true,
user_volume_encryption = false,
volume_encryption_key = "${aws_kms_key.foo.key_id}"
}
Ideally it would be nice to also have a aws_workspaces_bundle
resource, but I'd settle for the former.
Checking in on this ticket any updates or has it made it onto the roadmap?
Based on the outcome of hashicorp/terraform#7806 it seems like this is not solvable at this time, though it may have been resolved in the mean time. Nobody on the team at HashiCorp is currently working on this, but we'd be happy to review a new PR for this (possibly based on the existing one) if the necessary API actions are now in place.
Any plans to add support for this soon?
This would be nice.
Any new updates here ? I'd love to see tf provisioning of AWS workspaces.
Any updates?
Will also indicate my interest in this feature here (+1)
+1
AWS still hasn't provided any API functionality to register a directory for workspaces making this impossible. Been following this https://forums.aws.amazon.com/thread.jspa?threadID=237801 which AWS has stated there is no ETA.
@apparentlymart Do we have support for this feature or any ETA ?
@bharat109puri AWS has no ETA:
At this moment, we don't have an ETA on when this feature will be released. However, as soon as it gets released, it should be publicly announced in either the 'AWS News Blog' page [1] or on our 'What's New with AWS' page [2]. I would also recommend you to subscribe to our 'AWS Announcements' page [3].
https://forums.aws.amazon.com/thread.jspa?threadID=237801
Last message from January 15th.
Does it make sense to implement AWS WorkSpaces resources aside of directory registration?
It's finally been released!
https://aws.amazon.com/about-aws/whats-new/2019/11/amazon-workspaces-introduces-workspaces-directory-apis/
Hopefully this means work can progress on the terraform side.
Despite Workspaces API is far from sustainable, it's possible to register workspaces directory now and #11023 represents a basis for it. Unfortunately, the full CRUD lifecycle for a resource with all possible attributes can't be implemented with the current API version and I had to request the corresponding features from AWS Support. However, the bare resource is available and its attributes could be easily extended when AWS will complement API.
This would be very applicable right now with the Corona Virus and everyone having to work from home... is there anyway people (like @cmaxwellau from https://github.com/hashicorp/terraform/issues/10794 ) could push forward whatever is needed for this to get pushed into terraform?
Has anyone filed a ticket for a workspaces bundle resource?
@radius314 https://www.terraform.io/docs/providers/aws/d/workspaces_bundle.html
Here is extended filtering for it.
@Tensho That's data. I think he's asking for a resource (e.g., creating a bundle with TF).
@radius314 https://www.terraform.io/docs/providers/aws/d/workspaces_bundle.html
Here is extended filtering for it.
Correct, as @gudlyf mentioned, looking for the resource.
Ah, sorry for the confusion 😁 As far as I know there is no API for bundle creation/import, DescribeWorkspaceBundles is the only action.
Highly recommend opening a support ticket with AWS to ask for an API for creating Workspace bundles!
Support ticket opened with them for the feature request.
On Wed, Jun 3, 2020 at 10:03 AM Loren Gordon notifications@github.com
wrote:
Highly recommend opening a support ticket with AWS to ask for an API for
creating Workspace bundles!—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/terraform-providers/terraform-provider-aws/issues/434#issuecomment-638219091,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOD3O2YWX6T3FOLHUJYFMLRUZJ3RANCNFSM4DPD2I7Q
.
I case someone cares, I tried to create a workspace with root volume size 80GB and user volume size 2000GB and got the error below from AWS API:
aws_workspaces_workspace.this: Creating...
Error: InvalidParameterValuesException: Graphics: Invalid root and user volume size selected. Root and user volume size (GB) must be (100+|100+).
Then I tried creating a workspace with root volume size 100GB and user volume size 2000GB, and got the error below from the provider:
Error: expected workspace_properties.0.root_volume_size_gib to be one of [80], got 100
Hi @missingcharacter, thanks for the feedback. Typically we prefer reporting new issues as a separate GitHub Issue.
It looks like the problem is that the volume size combinations you're using are not available for Workspaces. The valid combinations are listed at https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html#change_volume_sizes. I'll summarize them here:
Root: 80 GB, User: 10 GB
R: 80 GB, U: 50 GB
R: 80 GB, U: 100 GB
R: 175-2000 GB, U: 100-2000 GB
@gdavison that's weird because I was able to create the workspace via the console without a problem:
could it be an issue with the API?
Hi
Can someone please help, I am trying to setup AWS workspaces and getting this error:
Error: Invalid resource type
on ../../modules/workspaces/workspaces.tf line 1, in resource "aws_workspaces_workspace" "main":
1: resource "aws_workspaces_workspace" "main" {
The provider provider.aws does not support resource type
"aws_workspaces_workspace".
provider.tf -----> version = "~> 2.43.0"
@dinesh-AC3 I think you need a newer version https://github.com/nxtlytics/ivy-terraform-modules/blob/master/aws/workspace/config.tf#L3
@dinesh-AC3 I think you need a newer version https://github.com/nxtlytics/ivy-terraform-modules/blob/master/aws/workspace/config.tf#L3
Yeah, thanks mate, figured out just right after I posted this :), really appreciate your reply mate. Regards :)
I looked at https://github.com/terraform-providers/terraform-provider-aws/blob/v2.62.0/CHANGELOG.md and made me realize the version issue.
Really appreciate
Dinesh
I see you can create a workspace directory and a workspace ip group via terraform but can't find a resource to link both(an attachment?). Am i missing something very obvious or is that link not available via terraform yet?
@bensunny1 😅 TBH, I've never used IP groups in my setup before. I'll add association in 2-3 days.
@bensunny1 It would be nice if you put your voice to #14451. In this case there are more chances this fix will be reviewed by provider maintainers.
Hi folks 👋
Over the past few months, the Terraform AWS Provider has been augmented with WorkSpaces support. As of this writing (version 3.18.0), the following is supported:
Resources:
aws_workspaces_directory
resourceaws_workspaces_ip_group
resourceaws_workspaces_workspace
resourceData Sources:
aws_workspaces_bundle
data sourceaws_workspaces_directory
data sourceaws_workspaces_image
data sourceaws_workspaces_workspace
data sourceSince these types of "support service" issues do not have a good definition of done as time progresses, I'm going to close this issue now since a lot of initial use cases should be covered now. If you have bug reports or feature requests for Workspaces, like this recently created New AWS Workspaces Cross Region Redirection Support, please submit new issues following the templates. Thank you!
Most helpful comment
This would be very applicable right now with the Corona Virus and everyone having to work from home... is there anyway people (like @cmaxwellau from https://github.com/hashicorp/terraform/issues/10794 ) could push forward whatever is needed for this to get pushed into terraform?