Setup your dev environment for use with AWS

To complete this course, configure your system as per the instructions below per your OS. I personally use Windows 10/11 with WSL2 and Ubuntu 22.04 LTS.

However, follow the instructions below as per your OS of choice:

  1. WSL2 on Windows 10/11
  2. Ubuntu Linux
  3. Windows 10/11
  4. MacOS

We will install the following tools:

  1. VSCode for editing code
  2. Docker Desktop for running containers
  3. AWS CLI for interacting with AWS

After that we will install AWS CDK for creating and managing AWS resources.

WSL2 on Windows 10/11

a) Install the following prerequisites:

  1. Install Windows Terminal from Microsoft Store.
  2. Install VSCode from Microsoft VSCode Website
  3. Install Docker for Desktop

b) After that, follow the below instructions to install and configure WSL2 on Windows 10/11.

  1. Install WSL2 (Windows Subsystem for Linux 2) on you PC by following these instructions
  2. Open Windows Terminal and run wsl to login to your WSL2 environment

c) Once you're logged into your WSL2 environment, follow the below instructions to install and configure AWS CLI.

  1. Follow these instructions to install and configure AWS CLI

Now you can proceed to CDK installation instructions below.

Ubuntu Linux

a) Install the following prerequisites:

  1. Install VSCode from Microsoft VSCode Website
  2. Install Docker for Desktop

b) After that, follow the below instructions to install and configure AWS CLI.

  1. Follow these instructions to install and configure AWS CLI

Now you can proceed to CDK installation instructions below.

Windows 10/11

a) Install the following prerequisites:

  1. Install Windows Terminal from Microsoft Store.
  2. Install VSCode from Microsoft VSCode Website
  3. Install Docker for Desktop

b) After that, follow the below instructions to install and configure AWS CLI.

  1. Download and install the AWS CLI MSI Installer
  2. Use these instructions to configure AWS CLI for usage

Now you can proceed to CDK installation instructions below.

MacOS

a) Install the following prerequisites:

  1. Install VSCode from Microsoft VSCode Website
  2. Install Docker for Desktop

b) Proceed to AWS CLI installation instructions below. You need sudo access.

To install AWS CLI on MacOS, first download the latest AWS CLI package from AWS by running

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

Next, install the package by running

sudo installer -pkg AWSCLIV2.pkg -target /

Verify that AWS CLI has been installed & added to path by running

aws --version

c) You have to configure AWS CLI for usage by following these instructions

Now you can proceed to CDK installation instructions below.

Install AWS CDK

Now that we have installed all the prerequisites, we can install AWS CDK by following this guide.

Need Help? Open a discussion thread on GitHub.

Related Posts