Build a QGIS Environment on Amazon WorkSpaces
Tags: workspaces, aws, qgis, foss4g
Published: 2022-05-04 11:27:19

![img](https://day-journal.com/memo/images/try-088_01.png)

### I built a QGIS environment on Amazon WorkSpaces :tada:  

<br>

[QGIS](https://qgis.org/en/site) is a cross-platform open-source GIS software that can browse, edit, and analyze geographic information systems. This time, we try to build a QGIS execution environment using the Windows environment of [Amazon WorkSpaces](https://aws.amazon.com/workspaces) :thumbsup: 

<br>

The following is a detailed explanation.

- Windows environment construction
- Building a remote connection environment and installing QGIS
- Creating an Image
- Rebuild Windows and QGIS environment from image

<br>

## Windows environment construction

This is how to build a Windows environment in Amazon WorkSpaces. 

Click AWS Management Console → WorkSpaces.
![img](https://day-journal.com/memo/images/amazon-workspaces-001_01.png)

Click "Start Now.”
![img](https://day-journal.com/memo/images/amazon-workspaces-001_02.png)

Click "Start" under Fast Setup.
![img](https://day-journal.com/memo/images/amazon-workspaces-001_03.png)

Select any OS (in this case, select Windows Server 2016) → Set username, name, email address, and language → Click "Start WorkSpaces."
![img](https://day-journal.com/memo/images/amazon-workspaces-001_04.png)

Click on "Show WorkSpaces console."
![img](https://day-journal.com/memo/images/amazon-workspaces-001_05.png)

When WorkSpaces is created, it will appear in the WorkSpaces list.
![img](https://day-journal.com/memo/images/amazon-workspaces-001_06.png)

This is all you need to do to create a Windows environment on WorkSpaces! 

<br>

## Building a remote connection environment and installing QGIS

This is how to build a remote connection environment and install QGIS on Amazon WorkSpaces.  

After WorkSpaces is successfully created, an email with login information will be sent to your registered address.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_01.png)

Access the address you received and set your login password → Click "Update User."
![img](https://day-journal.com/memo/images/amazon-workspaces-002_02.png)

Install the application for connection. You can also use a browser to access the site, but this time we will install the desktop application for Mac.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_03.png)

Launch the installed connection application.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_04.png)

Enter the registration code received by email → Click "Register."
![img](https://day-journal.com/memo/images/amazon-workspaces-002_05.png)

Enter your user name and password → Click "Sign In."
![img](https://day-journal.com/memo/images/amazon-workspaces-002_06.png)

Connect to the WorkSpaces Windows environment you created.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_07.png)

[Download](https://qgis.org/en/site/forusers/download.html) and install QGIS in the Windows environment.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_08.png)

You have successfully installed QGIS.
![img](https://day-journal.com/memo/images/amazon-workspaces-002_09.png)

You have remotely connected to the Windows environment and installed QGIS! Next, I’ll show you how to create the image and rebuild the same environment.

<br>

## Creating an Image

Here is how to create an image in Amazon WorkSpaces.  

Select the target WorkSpaces → Actions → Click "Create Image."
![img](https://day-journal.com/memo/images/amazon-workspaces-003_01.png)

Click "Next.”
![img](https://day-journal.com/memo/images/amazon-workspaces-003_02.png)

Enter an image name and description → Click "Create Image."
![img](https://day-journal.com/memo/images/amazon-workspaces-003_03.png)

After creating the image, click on Actions → Click "Create Bundle."
![img](https://day-journal.com/memo/images/amazon-workspaces-003_04.png)

Set bundle name, description, hardware type, and storage → Click "Create Bundle."
![img](https://day-journal.com/memo/images/amazon-workspaces-003_05.png)

Confirm that the bundle has been created.
![img](https://day-journal.com/memo/images/amazon-workspaces-003_06.png)

The creation of the image and bundle containing the QGIS environment is complete!

<br>

## Rebuild Windows and QGIS environment from image

This is how to rebuild Windows and QGIS environment from an image in Amazon WorkSpaces. 

Select the target bundle → Click "Start WorkSpaces."
![img](https://day-journal.com/memo/images/amazon-workspaces-003_06.png)

Select the target directory → Click on "Next Steps."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_01.png)

Enter username, name, and email address → Click on "Create User."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_02.png)

Confirm that the user has been created → Click "Next Step."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_03.png)

Select the target bundle as it is → Click "Next Step."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_04.png)

Select the execution mode → Click "Next Step."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_05.png)

Click "Start WorkSpaces."
![img](https://day-journal.com/memo/images/amazon-workspaces-004_06.png)

WorkSpaces will appear in the list of WorkSpaces when it is being created.
![img](https://day-journal.com/memo/images/amazon-workspaces-004_07.png)

When you connect to the created WorkSpaces, you will see the Windows and QGIS environments as they appear in the image.
![img](https://day-journal.com/memo/images/amazon-workspaces-004_08.png)

Creating an image also allows you to rebuild your Windows and QGIS environments!

<br>

Related Articles

{% link https://dev.to/aws-builders/using-qgis-and-amazon-auroras-postgresql-postgis-to-display-location-data-5ecm %}

<br>

References
[Amazon WorkSpaces](https://aws.amazon.com/workspaces)
[QGIS](http://www.qgis.org/en/site/)