Skip to main content

Setting up the Development Environment

Objective

This guide shows you how to set up the necessary tools and environment to leverage the python-fastapi-demo-docker project. For more samples, we recommend exploring the sample app collection (e.g., Python, Flask, FastAPI, PostgreSQL) at docker/awesome-compose.

Use the tabs below to see the steps for the specific environment where you are running this lab.

If you are attending an AWS hosted event, you will have access to a new AWS account in AWS Workshop Studio. You will use this AWS account to run the labs in this workshop. The account is destroyed when the AWS event is finished.

Workshop Studio deploys a Visual Studio enviroment running on top of an EC2 instance. To run the workshop, you will connect to this Visual Studio environment and execute commands in the Visual Studio terminal.

There is no need to install CLI tools or configure IAM permissions. You will be using the IAM permissions of the EC2 instance role where Visual Studio is running. All required tools and permissions have been installed and configured in this EC2 instance.

Prerequisites

  • Access the event via the one-click join event link provided by the event operator as part of an AWS hosted event.
  • OR via the Workshop Studio join URL with the 12 digit event access code distributed by an event operator.
  • Carefully review the terms and conditions associated with this event.

1. Workshop Studio Event Dashboard

After joining the AWS event, you should see the Event Dashboard page with the event information and workshop details. You will need to use the options in this page to access workshop resources while working on workshop labs. Here’s a quick rundown on these options:

workshop-studio-event-python

On the left side of the event page there is a section titled AWS account access with details to access the AWS account provisioned for you by Workshop Studio.

  • Open AWS Console - use this option to open the AWS Console.

The workshop deploys Visual Studio Code in an EC2 instance running in this AWS account.

  • IdeUrl and IdePassword - use these options to access Visual Studio Code.

2. Accessing Visual Studio terminal

First, click on IdeUrl in your web browser and log in using IdePassword to open the Visual Studio Code session.

Next, open VS Code terminal by accessing Menu -> Terminal -> New Terminal. Note that environment variables and IAM permissions have already been configured in VS Code terminal.

Now, you are ready to start the labs in this workshop.

visual-studio-terminal