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)

Connecting to an RDS instance with and without SSL

In order to test the connectivity to the DB instance, hop on to the RDS Admin Hub or the bastion server that you have. Ensure that the RDS Admin Hub is part of the same VPC as the DB instance subnets. As mentioned earlier, to demonstrate the concept, I considered my RDS Admin Hub as a bastion server as well. Security Group on my RDS Admin hub allows ingress on port 22 for SSH and RDP on port 3389.

RDS allocates a DNS name to each RDS DB instance that we create. In regard to RDS, these DNS names are called endpoints. You need to get the endpoint for the DB instance to establish the connectivity. You can get the endpoint for a specified DB instance by using the following command:

PS C:\> (Get-RDSDBInstance -DBInstanceIdentifier  "mywebappprd" ).endpoint

We got the endpoint address as mywebappprd.cwrq5w1v98ur.us-east...