Getting Started with AWS

Deploy a .NET Web Application on Amazon ECS powered by Graviton2

Module 1: Set up Your Environment

In this module, you will set up the AWS Environment with prerequisites


In this module, you will configure an environment using AWS CloudFormation template. CloudFormation template describes your desired resources and their dependencies so you can launch and configure them together as a stack.

CloudFormation template will deploy the necessary resources to follow along during the lab. It will also configure an AWS Cloud9 IDE with all prerequisites you need to follow along during the lab.

What You Will Learn

You will learn how to deploy an AWS CloudFormation template to create necessary resources you need.

Key Concepts

  • AWS CloudFormation -  AWS CloudFormation gives you an easy way to model a collection of related AWS and third-party resources, provision them quickly and consistently, and manage them throughout their lifecycles, by treating infrastructure as code.
  • CloudFormation Template - A CloudFormation template describes your desired resources and their dependencies so you can launch and configure them together as a stack.

 Time to Complete

15 minutes

 Services Used


  • Instructions below will deploy an environment in your AWS account. You need to have full access to the necessary services to deploy the environment successfully. The deployed resources consists of an AWS Cloud9 IDE for your development purpose, a db.t3.small Amazon Aurora with MySQL compatibility for database, an AWS Secrets Manager, two NAT Gateways, and all necessary roles and security groups.

    1. Deploy the latest CloudFormation template by following the link below for your preferred AWS region:

    Launch Template
    US East (N. Virginia) (us-east-1)
    US East (Ohio) (us-east-2)
    US West (Oregon) (us-west-2)
    EU (Ireland) (eu-west-1)
    EU (Frankfurt) (eu-central-1)
    AP (Sydney) (ap-southeast-2)

    This should take you to AWS CloudFormation Service - Create Stack screen.

    2. If prompted, login using your AWS account credentials.

    3. You should see a screen titled "Create Stack" at the "Specify template" step. The fields specifying the CloudFormation template are pre-populated. Click the Next button at the bottom of the page.

    4. On the Step 2 - Specify stack details screen, you can specify the stack name, network configuration, as well as Amazon RDS configuration. All required fields are already pre-filled with the default values. You can leave them as defaults and press Next button.

    CloudFormation specify stack details

    5. On the Step 3 - Configure stack options screen - leave the defaults, and don’t make any changes, just press Next button.

    6. On the Step 4 - Review screen, scroll to the bottom of the page and check all checkboxes, as per the screenshot below, then press Create stack for the template to be deployed.

    CloudFormation review stack

    7. When the template is in the CREATE_COMPLETE state, you can find information about created environment by going to AWS Console -> CloudFormation, selecting the created stack and going to the Outputs tab. You will see information like on the screenshot below:

    CloudFormation stack output

    Copy the values and paste them into a notepad, or local text file for easy reference in the later instructions.

Application Architecture

Here is what our architecture looks like right now:

Architecture module 1


In this module, you set up an AWS account. You also used a AWS CloudFormation template to create a stack for all required resources including an AWS Cloud9 IDE. In next step you set up your Cloud9 workspace.

Was this module helpful?

Set up Cloud9 Workspace