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 Antwort
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
EXPERTE
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen