- Newest
- Most votes
- Most comments
I have solved this issue by adding VPC endpoints with private DNS enabled for all the mentioned services and allowing redshift to be one of the trust relationship principals. VPC endpoint as follows: KMS - Interface type S3 - Gateway type secretsmanager - interface type redshift - interface type
The error you're encountering suggests there might be issues with network connectivity or permissions when creating a Redshift connection for AWS Glue. Here are some points to consider:
-
VPC Configuration: Ensure that your VPC is properly configured to allow communication between AWS Glue, Amazon Redshift, Amazon S3, AWS Secrets Manager, and AWS Security Token Service (STS). Check that the necessary VPC endpoints are set up and that your security groups allow the required traffic.
-
IAM Permissions: While you've mentioned having permissions for S3, GlueServiceRole, SecretsManager, and KMS, make sure you also have the necessary permissions for Redshift. The IAM role should have permissions to describe Redshift clusters and, if you're using Redshift Serverless, to list workgroups and namespaces.
-
Redshift Cluster Accessibility: If you're using a provisioned Redshift cluster, check if it's publicly accessible. If not, ensure that your VPC configuration allows AWS Glue to reach the cluster.
-
Credentials: Verify that the credentials you're using for the Redshift connection are correct and have the necessary permissions to access the Redshift cluster or serverless workgroup.
-
Network ACLs and Security Groups: Review your Network ACLs and Security Groups to ensure they're not blocking any necessary connections.
-
Secrets Manager: If you're using AWS Secrets Manager to store your Redshift credentials, make sure the secrets are correctly configured and accessible to the AWS Glue service.
-
KMS: If you're using AWS KMS for encryption, ensure that the KMS key policies allow AWS Glue to use the keys for encryption/decryption.
-
AWS Glue Studio: Consider using AWS Glue Studio to create the connection, as it provides a more guided approach and might help identify any missing configurations.
If the issue persists after checking these points, you may need to review your AWS CloudTrail logs or contact AWS Support for more detailed troubleshooting.
Sources
Redshift connections - AWS Glue
Creating an Amazon Redshift connection - AWS Glue
answered 2 years ago
Use AWS CLI to create custom connector for redshift with JDBC URL, its works for me.
answered 2 years ago
Relevant content
asked 2 years ago

I too ran into a similar issue. To resolve this , I had to add VPC endpoints for AWS Security Token Service (com.amazonaws.us-east-1.sts) and AWS Secrets Manager (com.amazonaws.us-east-1.secretsmanager) in addition to the endpoint created by AWS Redshift Serverless .