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

Documentation incorrect for the aws_workspace_directory #14276

Closed
ghost opened this issue Jul 21, 2020 · 5 comments · Fixed by #14577
Closed

Documentation incorrect for the aws_workspace_directory #14276

ghost opened this issue Jul 21, 2020 · 5 comments · Fixed by #14577
Labels
documentation Introduces or discusses updates to documentation. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/workspaces Issues and PRs that pertain to the workspaces service.
Milestone

Comments

@ghost
Copy link

ghost commented Jul 21, 2020

This issue was originally opened by @csol01 as hashicorp/terraform#25628. It was migrated here as a result of the provider split. The original body of the issue is below.


Hi There,

Apologies if this isn't the place to raise documentation issues, please point me in the right direction if I need to re-raise this elsewhere.

I've just been deploying out the aws_workspace_directory resource to register with a pre-existing directory service whereby only 1 of the directory service subnets is within an AZ that supports Workspaces. This isn't an issue as you can specify the subnets to use within the resource itself, and they don't need to be the subnets in which the directory service exists i.e.

resource "aws_workspaces_directory" "ms_ds" { directory_id = "<directory_id>" subnet_ids = [ "<subnet_id#1>", "<subnet_id#2>" ] }
However the documentation for this resource states that the subnet_ids value should be:

"(Optional) The identifiers of the subnets where the directory resides."

which is incorrect as it can be any subnets you want providing the workspaces facility is supported in those zones.

Chris.

@ghost ghost added the service/workspaces Issues and PRs that pertain to the workspaces service. label Jul 21, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 21, 2020
@bflad bflad added documentation Introduces or discusses updates to documentation. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 21, 2020
@Tensho
Copy link
Contributor

Tensho commented Aug 10, 2020

RegisterWorkspaceDirectory API action states SubnetIds parameter is not required, which means "No preferences" mode I guess (AWS service picks up available subnets for you). IMHO, it's user responsibility to determine the right AZs set, which supports AWS WorkSpaces service. It's hard to maintain constantly expanding list of AZs at provider's side and much easier to return error from the upstream AWS API.

Please consult "Availability Zones for Amazon WorkSpaces" to get the list of AWS WorkSpaces available AZs or contact AWS Support.

@csol01
Copy link

csol01 commented Aug 10, 2020 via email

@Tensho
Copy link
Contributor

Tensho commented Aug 11, 2020

@csol01 Ah, I see your point – workspaces subnets not necessarily should be the same as directory subnets. You are totally right, they could be different. The subnets, where the directory service resides in, should be declared in aws_directory_service_directory.vpc_settings.subnet_ids attribute and the subnets, where workspaces are created, should be declared in aws_workspaces_directory.subnet_ids attribute. Thank you for clarification 🙇 Would you like to make your first contribution to AWS Terraform provider? 🙂

@ghost
Copy link
Author

ghost commented Oct 15, 2020

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!

@ghost
Copy link
Author

ghost commented Nov 13, 2020

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!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. good first issue Call to action for new contributors looking for a place to start. Smaller or straightforward issues. service/workspaces Issues and PRs that pertain to the workspaces service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants