Book Image

AWS Tools for PowerShell 6

By : Ramesh Waghmare
Book Image

AWS Tools for PowerShell 6

By: Ramesh Waghmare

Overview of this book

AWS Tools for PowerShell 6 shows you exactly how to automate all the aspects of AWS. You can take advantage of the amazing power of the cloud, yet add powerful scripts and mechanisms to perform common tasks faster than ever before. This book expands on the Amazon documentation with real-world, useful examples and production-ready scripts to automate all the aspects of your new cloud platform. It will cover topics such as managing Windows with PowerShell, setting up security services, administering database services, and deploying and managing networking. You will also explore advanced topics such as PowerShell authoring techniques, and configuring and managing storage and content delivery. By the end of this book, you will be able to use Amazon Web Services to automate and manage Windows servers. You will also have gained a good understanding of automating the AWS infrastructure using simple coding.
Table of Contents (17 chapters)

S3 lifecycle policies

S3 lifecycle policies are a great way to automate the data management task for the data in S3 and lower the cost of the data storage based on the access need. These are a set of rules that you can define on the bucket or objects that automate the migration of an object's storage class, or deletion based on the specified time interval. We have seen earlier in this chapter about the different storage classes and their characteristics. By default, lifecycle policies are disabled on buckets and objects.

Consider you have a business case, where your backup files need to be available for quick access for the first 30 days. After 30 days, you may need them only if there is a demand until 60 days; and, after 60 days, you would like to archive them on the long-term archiving storage for overall 1 year from the day of the object creation. For this business case...