To successfully deploy the Amazon WorkSpaces service, you need to ensure these key elements are in place:
WorkSpaces Client Application: This is a device supported by Amazon WorkSpaces. For guidelines on how to get started with your WorkSpace, refer to the relevant resources.Use of PCoIP Zero Clients is also permitted to connect to WorkSpaces. A comprehensive list of compatible devices can be found in the PCoIP Zero Clients for Amazon WorkSpaces section.User Authentication and Workspace Access Directory Service: Currently, Amazon WorkSpaces can operate with AWS Directory Service and Microsoft AD. To synchronize your existing enterprise user credentials with Amazon WorkSpaces, you can integrate your local AD server with the AWS Directory Service.Amazon Virtual Private Cloud (Amazon VPC): This is the environment where your Amazon WorkSpaces will operate. It is important to note that a minimum of two subnets is required for Amazon WorkSpaces deployment, as every AWS Directory Service setup necessitates two subnets in a multi-AZ deployment.
To use the AWS CLI to get what user we assign to what Amazon WorkSpaces, you can use the describe-workspaces command and filter the output to show the username for each workspace. Here is an example command that you can use:
aws workspaces describe-workspaces --query “Workspaces[*].[WorkspaceId, UserName]“ --output text
This command uses the describe-workspaces command to get information about all workspaces in your AWS account. The --query option is used to filter the output to only show the WorkspaceId and UserName for each WorkSpace, and the --output option is set to text to display the output in a simple text format.
The output of this command will be a list of WorkSpace IDs and their assigned usernames, separated by tabs. You can redirect the output to a file or pipe it to another command to process the data further. For example, you could use the grep command to filter the output to show only the workspaces assigned to a particular user: