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
AWS for System Administrators

You're reading from  AWS for System Administrators

Product type Book
Published in Feb 2021
Publisher Packt
ISBN-13 9781800201538
Pages 388 pages
Edition 1st Edition
Languages
Author (1):
Prashant Lakhera Prashant Lakhera
Profile icon Prashant Lakhera
Toc

Table of Contents (18) Chapters close

Preface 1. Section 1: AWS Services and Tools
2. Chapter 1: Setting Up the AWS Environment 3. Chapter 2: Protecting Your AWS Account Using IAM 4. Section 2: Building the Infrastructure
5. Chapter 3: Creating a Data Center in the Cloud Using VPC 6. Chapter 4: Scalable Compute Capacity in the Cloud via EC2 7. Section 3: Adding Scalability and Elasticity to the Infrastructure
8. Chapter 5: Increasing an Application's Fault Tolerance with Elastic Load Balancing 9. Chapter 6: Increasing Application Performance Using AWS Auto Scaling 10. Chapter 7: Creating a Relational Database in the Cloud using AWS Relational Database Service (RDS) 11. Section 4: The Monitoring, Metrics, and Backup Layers
12. Chapter 8: Monitoring AWS Services Using CloudWatch and SNS 13. Chapter 9: Centralizing Logs for Analysis 14. Chapter 10: Centralizing Cloud Backup Solution 15. Chapter 11: AWS Disaster Recovery Solutions 16. Chapter 12: AWS Tips and Tricks 17. Other Books You May Enjoy

Rotating IAM credentials using Boto3

Rotating an access key (including access key IDs and secret access keys) regularly is a security best practice. It reduces the blast radius of damage if the security key is compromised.

Note

AWS strongly recommends the use of IAM roles as it uses temporary security credentials. STS will automatically take care of rotating and expiring those credentials, so we don't need to worry about this. However, in cases where our application runs somewhere other than EC2, we need to add key rotation as part of the application life cycle.

Prerequisites

Before executing the Boto3 script, please create a new key for the user, in addition to the one that is in use. IAM only allows two access keys. Before generating a new key for the user, we need to list the existing keys; if the user already has two keys, our Boto3 script will fail if we try to generate a new key (third key). Listing a key is an important step as it will provide us with a safety...

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