Skip to content

Error Conection Glue-Redshsift

0

I'm trying to set up the Glue and Redshift connection. I created several endpoints for S3, Redshift, KMS, and Secret Manager, but I'm getting this error. I don't understand where this VPC value was configured or how to fix it.

Connection creation is failed. 1 validation error detected: Value '[vpc-0a50fa3954a0a6586]' at 'connectionVPCConfiguration.subnetIds' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 32, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: ^subnet-[a-z0-9]+$]

asked a year ago208 views

1 Answer
0

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:

  1. You're providing a VPC ID where subnet IDs are expected
  2. 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:

  1. Identify the specific subnets within your VPC (vpc-0a50fa3954a0a6586) where you want your Glue connection to operate
  2. Use those subnet IDs (which will look like "subnet-abc123def") in your connection configuration
  3. 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.