Skip to content

Commit add5c7b

Browse files
authored
Merge pull request aws#178 from awslabs/vrkhare-patch-2
resolving the Redshift DNS name to a private IP
2 parents 70015f2 + dcc84d6 commit add5c7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

advanced_functionality/working_with_redshift_data/working_with_redshift_data.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"1. Preload that cluster with data from the [iris data set](https://archive.ics.uci.edu/ml/datasets/iris) in a table named public.irisdata.\n",
2828
"1. Update the credential file (`redshift_creds_template.json.nogit`) file with the appropriate information.\n",
2929
"\n",
30+
"Also, note that this Notebook instance needs to resolve to a private IP when connecting to the Redshift instance. There are two ways to resolve the Redshift DNS name to a private IP:\n",
31+
"1. The Redshift cluster is not publicly accessible so by default it will resolve to private IP.\n",
32+
"1. The Redshift cluster is publicly accessible and has an EIP associated with it but when accessed from within a VPC, it should resolve to private IP of the Redshift cluster. This is possible by setting following two VPC attributes to yes: DNS resolution and DNS hostnames. For instructions on setting that up, see Redshift public docs on [Managing Clusters in an Amazon Virtual Private Cloud (VPC)](https://docs.aws.amazon.com/redshift/latest/mgmt/managing-clusters-vpc.html).\n",
33+
"\n",
3034
"### Notebook Setup\n",
3135
"Let's start by installing `psycopg2`, a PostgreSQL database adapter for the Python, adding a few imports and specifying a few configs. "
3236
]

0 commit comments

Comments
 (0)