- Newest
- Most votes
- Most comments
It appears you're experiencing connectivity issues between AWS Glue and Amazon Redshift Serverless. This is a common problem that typically stems from network configuration or permission issues. Let me help you troubleshoot this.
For the first error (InvalidInputException: [REDSHIFT requires PhysicalConnectionRequirements]), when creating a Redshift connection in Glue Studio, you need to provide the physical connection requirements, which include VPC, subnet, and security group information. This is required for Redshift connections but might not be explicitly prompted for in the UI.
For the second error (database connectivity problem), there are several potential causes:
- VPC Endpoints: You need to set up the necessary VPC endpoints with private DNS enabled for:
- AWS KMS (interface type)
- S3 (gateway type)
- AWS Secrets Manager (interface type)
- Redshift (interface type)
- Security Token Service (STS) (interface type)
- IAM Permissions: Ensure your IAM role has the required permissions for:
- S3 access
- GlueServiceRole permissions
- SecretsManager access
- KMS permissions
- Redshift permissions (including DescribeClusters and, for Redshift Serverless, ListWorkgroups and ListNamespaces)
- Security Groups: Verify your security groups allow:
- Inbound traffic from Glue to Redshift (typically on port 5439)
- Outbound traffic to S3, Secrets Manager, KMS, and STS
-
Network ACLs: Check if there are any Network ACLs blocking traffic between Glue and the required services.
-
Trust Relationships: Make sure Redshift is included as one of the trust relationship principals in your IAM role.
Since the CLI command works but the Glue job fails, it suggests that the connection parameters are correct, but there might be networking or permission issues when Glue tries to use the connection during job execution.
To resolve this, I recommend adding all the necessary VPC endpoints mentioned above and reviewing your IAM permissions. The Version 2 Redshift connection for Glue has some specific requirements that might differ from Version 1, which could explain why you're facing these issues.
Sources
The new version 2 redshift connection for Glue fails | AWS re:Post
Glue Connection (Version 2) for redshift | AWS re:Post
Troublehsoot AWS Glue connection to a JDBC data source | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
asked 2 years ago
