Using S3 Bucket Policies and Conditions to Restrict Specific Permissions

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating an S3 Bucket
lock
Create a Bucket Policy in S3 with IP Address Conditions
lock
Create a Bucket Policy in S3 with Encryption Conditions

The hands-on lab is part of these learning paths

Solutions Architect – Professional Certification Preparation for AWS
course-steps
48
certification
7
lab-steps
19
quiz-steps
4
description
2
Security - Specialty Certification Preparation for AWS
course-steps
23
certification
2
lab-steps
12
quiz-steps
4
Scenario: Migrating From an End-of-Life Data Center to AWS
course-steps
6
certification
3
lab-steps
8
quiz-steps
1

Ready for the real environment experience?

DifficultyBeginner
Time Limit1h
Students2727
Ratings
4.7/5
starstarstarstarstar-half

Description

Create and Apply S3 Bucket Policies with Conditions to Restrict Specific Bucket Permissions

Being able to restrict and grant access to specific S3 resources is fundamental when implementing your security procedures. There are various methods that can be used to achieve this, one of which is to implement bucket policies. Bucket policies are applied directly to a bucket within S3 itself and apply to that bucket only.  

To make your bucket policy even more effective, you can apply specific conditions as to when the effects of that Policy should apply. There are a many conditions you can base your bucket policy upon, and the AWS documentation provides greater insight into these here.

This Lab will guide you through the bucket policy creation process with the use of the AWS Policy Generator

You will create and test two different bucket policies:

1. Configure a bucket policy that will restrict what a user can do within an S3 bucket based upon their IP address

2. Configure a bucket policy to only allow the upload of objects to a bucket when server side encryption has been configured for the object

 

Updates 

April 8th, 2020 - Updated S3 Bucket Enforces Encryption check to tolerate bucket name variations

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

About the Author
Students109750
Labs1
Courses92
Learning paths61

Stuart has been working within the IT industry for two decades covering a huge range of topic areas and technologies, from data center and network infrastructure design, to cloud architecture and implementation.

To date, Stuart has created 80+ courses relating to Cloud reaching over 100,000 students, mostly within the AWS category and with a heavy focus on security and compliance.

Stuart is a member of the AWS Community Builders Program for his contributions towards AWS.

He is AWS certified and accredited in addition to being a published author covering topics across the AWS landscape.

In January 2016 Stuart was awarded ‘Expert of the Year Award 2015’ from Experts Exchange for his knowledge share within cloud services to the community.

Stuart enjoys writing about cloud technologies and you will find many of his articles within our blog pages.