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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ