VPC networking and security with Elastic Beanstalk
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.
VPC Networking and Security via Elastic Beanstalk
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.
- 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.
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.