Building Your First Amazon Virtual Private Cloud (VPC)
SPL-13 - Version 4.2.8
© 2019 Amazon Web Services, Inc. and its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.
Errors or corrections? Email us at firstname.lastname@example.org.
Other questions? Contact us at https://aws.amazon.com/contact-us/aws-training/
In this lab, you will create a basic virtual private cloud (VPC) without using the VPC Wizard. The VPC that you build will include a web server and an Amazon RDS database. Once you have created both, you will connect your address book application running on your web server to your Amazon RDS for MySQL instance. Once you have successfully configured your address book application with your RDS instance, you will be able to add and remove contacts from the address book.
In this lab you will manually:
- Create an Amazon Virtual Private Cloud (VPC)
- Create a public and private subnets
- Create an Internet gateway
- Create a Route Table and added a route to the Internet
- Create a security group for your web server to only allow HTTP traffic to your web server
- Create a security group for your MySQL RDS instance to only allow MySQL traffic from your public subnets
- Deploy a web server and a MySQL RDS instance
- Configure your application to connect to your MySQL RDS instance
Amazon Virtual Private Cloud (VPC)
Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the Amazon Web Services (AWS) cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. You can use both IPv4 and IPv6 in your VPC for secure and easy access to resources and applications.
- At the top of your screen, launch your lab by clicking
This will start the process of provisioning your lab resources. An estimated amount of time to provision your lab resources will be displayed. You must wait for your resources to be provisioned before continuing.
If you are prompted for a token, use the one distributed to you (or credits you have purchased).
- Open your lab by clicking
This will automatically log you into the AWS Management Console.
Please do not change the Region unless instructed.
Common login errors
Error : Federated login credentials
If you see this message:
- Close the browser tab to return to your initial lab window
- Wait a few seconds
- Click again
You should now be able to access the AWS Management Console.
Error: You must first log out
If you see the message, You must first log out before logging into a different AWS account:
- Click click here
- Close your browser tab to return to your initial Qwiklabs window
- Click again
Join Qwiklabs to read the rest of this lab...and more!
- Get temporary access to the Amazon Web Services Console.
- Over 200 labs from beginner to advanced levels.
- Bite-sized so you can learn at your own pace.