E-learningLatestNew CoursesNews

Amazon WorkSpaces Tutorial: Learn how to Launch a Virtual Desktop

Amazon WorkSpaces is a powerful tool and you will learn how to provision a virtual desktop

First of all, with Amazon WorkSpaces Tutorial, you can launch a Virtual Desktop as well as provision virtual, cloud-based Microsoft Windows or Amazon Linux desktops for your users, known as WorkSpaces.
DevOps Engineer
In addition, Amazon WorkSpaces Tutorial allows you can use to build your modern application in the AWS Cloud.

How does Amazon WorkSpaces works?

Moreover, Amazon WorkSpaces uses a directory to store and manage information for your WorkSpaces and users. You can do any of the following:

  • Create a Simple AD directory.
  • Create an AWS Directory Service for Microsoft Active Directory, also known as AWS Managed Microsoft AD.
  • Connect to an existing Microsoft Active Directory by using Active Directory Connector.
  • Create a trust relationship between your AWS Managed Microsoft AD directory and your on-premises domain.

Amazon WorkSpaces Tutorial

Launch a WorkSpace Using AWS Managed Microsoft AD

In addition, Amazon WorkSpaces uses directories to store and manage information for your WorkSpaces and users. For example, for your directory, you can choose from Simple AD, AD Connector, or AWS Directory Service for Microsoft Active Directory, also known as AWS Managed Microsoft AD. In addition, you can establish a trust relationship between your AWS Managed Microsoft AD directory and your on-premises domain.

Amazon WorkSpaces and Amazon WorkSpaces Application Manager: Deliveri…
Learn more at ClayDesk
Securing Your Desktops with Amazon WorkSpaces - AWS Online Tech Talks
Learn more at ClayDesk E-Campus

Amazon WorkSpaces Tutorial

Step 1: Create an AWS Managed Microsoft AD Directory

First of all, create an AWS Managed Microsoft AD directory. AWS Directory Service creates two directory servers, one in each of the private subnets of your VPC. Note that there are no users in the directory initially. You will add a user in the next step when you launch the WorkSpace.

To create an AWS Managed Microsoft AD directory

  1. First of all, open the Amazon WorkSpaces console at https://console.aws.amazon.com/workspaces/.
  2. Secondly, in the navigation pane, choose Directories.
  3. Choose Set up DirectoryCreate Microsoft AD.
  4. For example, configure the directory as follows:
    1. For Organization name, for instance, enter a unique organization name for your directory (for example, my-demo-directory). Moreover, this name must be at least four characters in length, consist of only alphanumeric characters and hyphens (-), and begin or end with a character other than a hyphen.
    2. For instance, the Directory DNS, enter the fully-qualified name for the directory (for example, workspaces.demo.com).
    3. And, moreover, for NetBIOS name, enter a short name for the directory (for example, workspaces).
    4. For Admin password and Confirm password, enter a password for the directory administrator account. For more information about the password requirements, see Create Your AWS Managed Microsoft AD Directory in the AWS Directory Service Administration Guide.
    5. (Optional) For the Description, enter a description for the directory.
    6. In addition, within VPC, select the VPC that you created.
    7. For Subnets, select the two private subnets (with the CIDR blocks 10.0.1.0/24 and 10.0.2.0/24).
    8. Choose Next Step.
  5. Select Create Microsoft AD.
  6. Choose Done. The initial status of the directory is Creating. When directory creation is complete, the status is Active.

Step 2: Create a WorkSpace

Now that you have created an AWS Managed Microsoft AD directory, you are ready to create a WorkSpace.

To create a WorkSpace

  1. Open the Amazon WorkSpaces console at https://console.aws.amazon.com/workspaces/.
  2. In the navigation pane, choose WorkSpaces.
  3. Choose Launch WorkSpaces.
  4. On the Select a Directory page, choose the directory that you created, and then choose Next Step. Amazon WorkSpaces registers your directory.
  5. On the Identify Users page, add a new user to your directory as follows:
    1. Complete UsernameFirst NameLast Name, and Email. Use an email address that you have access to.
    2. Choose Create Users.
    3. Choose Next Step.
  6. When there, on the Select Bundle page, select a bundle and then choose Next Step.
  7. On the WorkSpaces Configuration page, choose a running mode and then choose Next Step.
  8. Next, on the Review & Launch WorkSpaces page, choose Launch WorkSpaces. The initial status of the WorkSpace is PENDING. When the launch is complete, the status is AVAILABLE and an invitation is sent to the email address that you specified for the user.

Step 3: Connect to the WorkSpace

After all, when you receive the invitation email, you can connect to your WorkSpace using the client of your choice. After you sign in, the client displays the WorkSpace desktop.

To connect to the WorkSpace

  1. Open the link in the invitation email. When prompted, specify a password and activate the user. Remember this password as you will need it to sign in to your WorkSpace. Note: Passwords are case-sensitive and must be between 8 and 64 characters in length, inclusive. Passwords must contain at least one character from three of the following categories: lowercase letters (a-z), uppercase letters (A-Z), numbers (0-9), and ~!@#$%^&*_-+=`|\(){}[]:;”‘<>,.?/.
  2. When prompted, download one of the client applications or, for Windows WorkSpaces, launch Web Access.NoteYou cannot use a web browser to connect to Amazon Linux WorkSpaces. For instance, if you aren’t prompted and you haven’t installed a client application already, open https://clients.amazonworkspaces.com/ and follow the directions.
  3. Start the client, enter the registration code from the invitation email, and choose Register.
  4. When prompted to sign in, enter the user name and password for the user, and then choose Sign In.
  5. (Optional) When prompted to save your credentials, choose Yes.

Next Steps

You can continue to customize the WorkSpace that you just created. For example, you can install software and then create a custom bundle from your WorkSpace. If you are finished with your WorkSpace, you can delete it. 

To delete a WorkSpace

  1. Open the Amazon WorkSpaces console at https://console.aws.amazon.com/workspaces/.
  2. In the navigation pane, choose WorkSpaces.
  3. Select your WorkSpace and choose ActionsRemove WorkSpaces.
  4. For example, when prompted for confirmation, choose Remove WorkSpaces. The status of the WorkSpace is set to TERMINATING. When the termination is complete, the status is set to TERMINATED.
  5. (Optional) For example, to delete any custom bundles and images that you are finished with, see Delete a Custom WorkSpaces Bundle or Image.
  6. (Optional) Hence, after you delete all WorkSpaces in a directory, you can delete the directory. For more information, see Delete the Directory for Your WorkSpaces.
  7. (Optional) Above all, after you delete all resources in the virtual private cloud (VPC) for your directory, you can delete the VPC and release the Elastic IP address used for the NAT gateway.

Amazon WorkSpaces FAQs

Amazon WorkSpaces is a managed, secure cloud desktop service. For instance, you can use Amazon WorkSpaces to provision either Windows or Linux desktops in just a few minutes and quickly scale to provide thousands of desktops to workers across the globe. Moreover, you can pay either monthly or hourly, just for the WorkSpaces you launch, which helps you save money when compared to traditional desktops and on-premises VDI solutions.

Click here to learn more

Moreover, learn more about our AWS Certification courses and DevOps Engineer E-Degree program