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 個回答
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
專家
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南