- Newest
- Most votes
- Most comments
Hello,
From the description, I understand that you are using "Connection" in CDK to create an EventBridge API destination with OAuth authorization and you encountered the below error in the associated CloudFormation stack:
Error occurred during operation 'AWS::Events::Connection'. (HandlerErrorCode: GeneralServiceException)
I would like to inform you that your CDK code looks valid and I do not see anything incorrect syntactically. However, it is possible that few other required parameters/permissions to create the required connection are missing at the moment leading to the error.
The easiest way to understand the exact issue would be to check the "CreateConnection" API call in CloudTrail and then update the CDK code accordingly.
I have also compiled a few other possible causes for the above error for your reference.
- The Secret used may have a resource based policy which restricts the CDK roles access to it.
- The IAM role used to perform the deployment or any custom Service Control Policies may have a deny statement for access to Secrets.
- The authorization parameters used to authorize with the endpoint might be missing few other required parameters. You can refer to the doc if you are making use of any API destination partners.
- The values passed in the authorization parameters like the AuthorizationEndpoint or the ClientId might be invalid depending on the use-case.
However, in case, there is no significant lead with the error message displayed in the "CreateConnection" API call, I would recommend reaching out to AWS Support Engineering via Support case with the "EventBridge" team for a deeper investigation specific to your account.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago