- Newest
- Most votes
- Most comments
The error you're encountering is related to the subnet configuration in your Glue-Redshift connection setup. The error message indicates that there's an issue with the format of the subnet IDs you're providing in the connection's VPC configuration.
The error specifically points out that the value '[vpc-0a50fa3954a0a6586]' is being incorrectly used in the 'subnetIds' field. This is incorrect because:
- You're providing a VPC ID where subnet IDs are expected
- The format is wrong - it includes square brackets which violate the required pattern
When creating a Glue connection to Redshift, you need to specify subnet IDs (not VPC IDs) in the proper format. Each subnet ID should:
- Start with "subnet-" followed by alphanumeric characters
- Not be enclosed in brackets
- Be valid subnets within your VPC
To fix this issue:
- Identify the specific subnets within your VPC (vpc-0a50fa3954a0a6586) where you want your Glue connection to operate
- Use those subnet IDs (which will look like "subnet-abc123def") in your connection configuration
- Make sure you're not wrapping the subnet IDs in brackets
If you're using the AWS Console to create the connection, make sure you're selecting the proper subnets from the dropdown menu rather than manually entering the VPC ID. If you're using AWS CLI or an API, ensure you're passing the subnet IDs in the correct format.
For Glue connections (especially Version 2 connections), proper subnet configuration is essential for establishing connectivity to Redshift along with the VPC endpoints you've already created.
Sources
The new version 2 redshift connection for Glue fails | AWS re:Post
Glue Connection (Version 2) for redshift | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
asked 2 years ago
