EasyManua.ls Logo

Amazon Redshift User Manual

Amazon Redshift
131 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #108 background imageLoading...
Page #108 background image
3. At a command prompt, specify the connection information by using either command line parameters
or a connection information string. To use parameters:
psql -h <endpoint> -U <userid> -d <databasename> -p <port>
Where:
<endpoint> is the Endpoint you recorded in the previous step.
<userid> is a user ID with permissions to connect to the cluster.
<databasename> is the Database Name you recorded in the previous step.
<port> is the Port you recorded in the previous step.
For example:
psql -h examplecluster.<XXXXXXXXXXXX>.us-east-1.redshift.amazonaws.com -U
masteruser -d dev -p 5439
4. At the psql password prompt, enter the password for the <userid> user.
You are connected to the cluster, and you can interactively enter commands.
Connect by Using a Certificate
To control whether psql authenticates the service using a certificate, you must use a connection information
string to specify connection information, and specify the sslmode keyword. By default, psql operates
with sslmode=prefer.To specify that psql opens an encrypted connection and uses an Amazon Redshift
certificate to verify the service, download an Amazon Redshift certificate to your computer, specify
sslmode=verify-ca, and specify sslrootcert with the location of the certificate.
For more information about connection information string parameters, see
http://www.postgresql.org/docs/8.4/static/libpq-connect.html
To connect by using a certificate
1. Save the public key from https://s3.amazonaws.com/redshift-downloads/redshift-ssl-ca-cert.pem as
a .pem file to your computer. If you do a File\Save as using Internet Explorer, specify the file type
as Text file (*.txt) and delete the .txt extension. For example, save it as the file
C:\MyDownloads\redshift-ssl-ca-cert.pem.
2. In the Amazon Redshift console, select the cluster to display the Cluster Database Properties.
Record the values displayed in the Endpoint, Port, and Database Name fields.
3. At a command prompt, specify the connection information using a connection information string:
API Version 2012-12-01
104
Amazon Redshift Management Guide
Connect by Using a Certificate

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Amazon Redshift and is the answer not in the manual?

Amazon Redshift Specifications

General IconGeneral
ProviderAmazon Web Services (AWS)
Query LanguageSQL
Data StorageColumnar storage
SecurityEncryption at rest and in transit, VPC, IAM
BackupAutomated and manual snapshots
DeploymentCloud-based
TypeCloud-based data warehouse service
Primary UseData warehousing, analytics
IntegrationIntegrates with AWS services, BI tools, and ETL tools
Pricing ModelOn-demand and reserved instance pricing
Data CompressionColumnar storage with data compression
Performance OptimizationQuery optimization

Summary

Amazon Redshift Clusters

Managing Clusters Using the Console

Details how to create, modify, delete, reboot, and resize clusters using the AWS Management Console.

Manage Clusters Using Amazon Redshift CLI and API

Managing Clusters in Virtual Private Cloud (VPC)

Creating a Cluster in a VPC

Outlines the general steps to deploy an Amazon Redshift cluster within a VPC, including VPC setup and subnet groups.

Amazon Redshift Cluster Subnet Groups

Managing Cluster Subnet Groups Using the Console

Provides instructions for creating, modifying, and deleting cluster subnet groups via the Amazon Redshift console.

Amazon Redshift Cluster Security Groups

Managing Security Groups Using the Console

Details how to create, modify, delete, and associate security groups with clusters using the console.

Amazon Redshift Parameter Groups

Amazon Redshift Snapshots

Monitoring Amazon Redshift Cluster Performance

Viewing Cluster Performance Data

Guides on how to view cluster metrics, identify performance issues, and analyze query impact.

Viewing Cluster Metrics During Query Execution

Shows how to view cluster metrics during query execution to identify performance bottlenecks.

Viewing Cluster Metrics During Load Operations

Explains how to view cluster metrics during load operations to identify resource-consuming queries.

Purchasing Amazon Redshift Reserved Nodes

Purchasing Reserved Node Offerings

Step-by-step guide to purchasing reserved node offerings through the Amazon Redshift console.

Controlling Access to Amazon Redshift Resources

Connecting to a Cluster

Setting Up the SQL Workbench Client

Provides detailed steps to set up SQL Workbench/J, a query tool, for connecting to Amazon Redshift clusters.

Connect to Your Cluster Programmatically

Connect from Outside of Amazon EC2 - Firewall Timeout Issue

Using the AWS SDKs with Amazon Redshift

Using the AWS SDK for Java with Amazon Redshift

Focuses on using the AWS SDK for Java to interact with Amazon Redshift, including client setup and examples.

Uploading Client-Side Encrypted Data for Use in Amazon Redshift

Signing an HTTP Request

Related product manuals