This guide provides step-by-step instructions for completing a lab that involves working with various AWS services including EC2, Amazon S3, SNS, CLI, and IAM. In this lab, you will set up an Amazon S3 bucket to share images with an external user, configure event notifications for changes to the bucket, and test the setup using AWS CLI commands.
By the end of this lab, you will be able to:
- Create and configure an S3 bucket using AWS CLI commands
- Verify permissions for a user on an S3 bucket
- Configure event notifications on an S3 bucket
This lab requires approximately 90 minutes to complete.
- Start Lab: Launch your lab from the provided link.
- Wait until the lab status indicates "ready", then close the Start Lab panel.
- Choose "AWS" at the top of the instructions to open the AWS Management Console in a new browser tab.
- Copy the AccessKey and SecretKey values from the Credentials panel and paste them into a text editor for later use.
- Connect to the CLI Host EC2 instance using EC2 Instance Connect.
- Configure the AWS CLI on the CLI Host instance by running
aws configure
and entering the prompted values.
- Use AWS CLI commands to create the S3 bucket and upload images to it.
- Verify that the images are successfully uploaded to the bucket.
- Review the permissions assigned to the
mediaco
IAM user group and themediacouser
IAM user. - Test the permissions by performing various actions on the S3 bucket as the
mediacouser
user.
- Create an SNS topic (
s3NotificationTopic
) and configure its access policy. - Subscribe to the SNS topic.
- Add an event notification configuration to the S3 bucket.
- Configure the AWS CLI client software to use the
mediacouser
credentials. - Test the event notifications by performing actions on the S3 bucket and verifying email notifications.
Congratulations! You have successfully completed the lab, which involved creating and configuring an S3 bucket, verifying permissions, configuring event notifications, and testing the setup using AWS CLI commands.
- AWS CLI documentation for S3
- AWS CLI documentation for S3API
- For more information about AWS Training and Certification, visit the AWS Training and Certification website.
Your feedback is valuable. If you have any suggestions or corrections, please provide them through the AWS Training and Certification Contact Form.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited.