EventBridge ApiDestination Connection - API KEY length problem

0

Hello, when I try to create Connection through CDK with API Key from SecretsManager that is 1024 characters long (JWT) I get a GeneralServiceException. When I replace that long JWT with random string like "test", it works and I can deploy the stack ... is it a bug? I couldn't find anything related to the length of an API key in the EventBridge/Connection/API Destination docs

  • Could you show us a screenshot of the code that gives the exception and also the exception itself?

1 Answer
0

Hi,

the maximum length for the API Key parameter is 512 characters, as per the documentation: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateConnectionApiKeyAuthRequestParameters.html

The value for the API key to use for authorization.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 512.
Pattern: ^[ \t]*[^\x00-\x1F:\x7F]+([ \t]+[^\x00-\x1F:\x7F]+)*[ \t]*$
Required: Yes

Please upvote/accept this answer if you found it helpful

profile pictureAWS
EXPERT
answered 10 months 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.

Guidelines for Answering Questions