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

Feature Request: WorkSpaces Web support #23489

Open
watsonjm opened this issue Mar 3, 2022 · 3 comments
Open

Feature Request: WorkSpaces Web support #23489

watsonjm opened this issue Mar 3, 2022 · 3 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/workspaces Issues and PRs that pertain to the workspaces service.

Comments

@watsonjm
Copy link

watsonjm commented Mar 3, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It would be nice to be able to manage AWS WorkSpaces Web with Terraform. It is a fairly new AWS offering, but is available in the API.

New or Affected Resource(s)

  • aws_workspaces_web_portal
  • aws_workspaces_web_trust_store
  • aws_workspaces_web_browser_settings
  • aws_workspaces_web_user_settings
  • aws_workspaces_web_network_settings

Potential Terraform Configuration

resource "aws_workspaces_web_portal" "example" {
  display_name         = "WorkSpaces Web"
  customer_managed_key = aws_kms_key.example.arn
  tags                 = {}
}

resource "aws_workspaces_web_network_settings" "example" {
  vpc_id = aws_vpc.main.id
  subnet_ids = [
    "aws_subnet.private1.id",
    "aws_subnet.private2.id"
  ]
  vpc_security_group_ids = ["aws_security_group.example.id"]
  tags                   = {}
}

resource "aws_workspaces_web_network_settings_association" "example" {
  portal_arn           = aws_workspaces_web_portal.example.policy_arn
  network_settings_arn = aws_workspaces_web_network_settings.example.arn
}

resource "aws_workspaces_web_browser_settings" "example" {
  browser_policy = <<EOF
{
   "chromePolicies":{
      "RestoreOnStartupURLs":{
         "value":[
            "terraform.io"
         ]
      }
   }
}
  EOF
  tags           = {}
}

resource "aws_workspaces_web_browser_settings_association" "example" {
  portal_arn           = aws_workspaces_web_portal.example.policy_arn
  network_settings_arn = aws_workspaces_web_network_settings.example.arn
}

resource "aws_workspaces_web_user_settings" "example" {
  copy_allowed     = false
  paste_allowed    = true
  download_allowed = false
  upload_allowed   = true
  print_allowed    = false
  tags             = {}
}

resource "aws_workspaces_web_user_settings_association" "example" {
  portal_arn           = aws_workspaces_web_portal.example.policy_arn
  network_settings_arn = aws_workspaces_web_network_settings.example.arn
}

References

https://docs.aws.amazon.com/workspaces-web/latest/APIReference/API_Operations.html

@watsonjm watsonjm added the enhancement Requests to existing resources that expand the functionality or scope. label Mar 3, 2022
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/workspaces Issues and PRs that pertain to the workspaces service. labels Mar 3, 2022
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 4, 2022
@tomburge
Copy link

any update on this?

@dpusta-dnanexus
Copy link

Any update on this please?

@bebold-jhr
Copy link

Renamed by AWS to "Amazon WorkSpaces Secure Browser"

Go SDK reference: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/workspacesweb (still with old name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/workspaces Issues and PRs that pertain to the workspaces service.
Projects
None yet
Development

No branches or pull requests

5 participants