Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon Web Services Bootcamp

You're reading from  Amazon Web Services Bootcamp

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781788294454
Pages 338 pages
Edition 1st Edition
Languages
Toc

Security groups


A security group acts as a firewall for our EC2 instance. We can restrict access to our EC2 by defining on which protocol, port, and IP address EC2 is accessible. We can also define a CIDR block so that a group of IP addresses are able to access EC2 instances.

AWS Management Console

Go to AWS EC2 Management Console at https://console.aws.amazon.com/ec2/home.

Creating a security group

Create a new security group under your AWS account:

Click Security Groups under NETWORK & SECURITY in the left menu. Click Create Security Group:

Figure 3.3: Creating a security group

Provide a friendly security group name, description, and the VPC you want to create this security group. Also, we need to add a rule for inbound access. In our case, we will add a rule for SSH (port 22), which will allow us to access an EC2 instance from any source (IP address). We can also provide an outbound rule, which will allow us to access specific destinations only. By default, the outbound rule is configured...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime