Skip to main content

VPC networking and security with Elastic Beanstalk

Hands-On Lab

 

Photo of

Training Architect

Length

02:00:00

Difficulty

Intermediate

This lab reviews the following tasks with Elastic Beanstalk: -Demonstrate the ability to create a VPC -Demonstrate the ability to assign a VPC security group -Demonstrate the ability to assign a public IP address Please be aware that the Security Group settings have been moved to the INSTANCE category.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

VPC Networking and Security via Elastic Beanstalk

Introduction

In this lab, we'll learn about VPC networking and security when using Elastic Beanstalk.

This written guide focuses on the steps necessary to complete the lab. It is recommended that you watch the accompanying video guide for extra details, clarifications, and insights.

Create a New VPC

First, we'll create our VPC. To begin, log in to AWS and navigate to the Elastic Beanstalk console.

  • Click the Get started button.
  • For the application name, enter vpc_networking_security.
  • From the platform menu, select Node.js.
  • Click Configure more options.
  • Find the section titled Network and click Modify.
  • From the VPC dropdown menu, select the preconfigured VPC. Make note of this VPC's name for the next section.
  • Check the box next to Public IP address.
  • Under Instance subnets, select all three availability zones.
  • Under Instance security groups, select default.
  • Click Save.
  • Click Create app.

Check Configuration

  • Once the environment has been provisioned, navigate to the EC2 console.
  • Click Running Instances.
  • Select the instance associated with our custom environment and check in the bottom pane to make sure it is associated with the VPC we configured earlier.
  • Navigate back to the Elastic Beanstalk Dashboard.
  • Click the URL at the top of the page.
  • We should see a "Congratulations" page, indicating that the app is running.

Conclusion

In this lab, we provisioned a VPC with a security group via Elastic Beanstalk. For more information, we recommend following along with the video associated with this lab.