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)

Deleting an RDS instance

The Remove-RDSDBInstance cmdlet lets you remove the existing DB instance. When you remove the DB instance, all the automated snapshot related to the DB instance are also removed and cannot be recovered. All manual snapshots taken by you will be retained. You can initiate the final snapshot of the DB instance as part of the removal operation and the DB instance will have the deleting status until the snapshot is completed. You also have the choice to skip the final snapshot.

To remove a DB instance, you can use the following two variants of the cmdlet.

PS C:\> Remove-RDSDBInstance -DBInstanceIdentifier "copymywebappprd" -FinalDBSnapshotIdentifier "Myfinalsnapshot4webappprd"

Or:

PS C:\> Remove-RDSDBInstance -DBInstanceIdentifier "copymywebappprd" -SkipFinalSnapshot $true
...