(aws_events_targets): AccessDeniedException when calling sendCommandCommand via AwsApi #27412
Labels
@aws-cdk/aws-events-targets
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
p1
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When creating an AwsApi EventBridge target to send a
sendCommandCommand
to SSM service, the CDK-generated Lambda function that performs the work lacks permission to do so.Expected Behavior
Once the EventBridge rule is triggered, the lambda function's invocation should succeed.
Current Behavior
Reproduction Steps
Possible Solution
Workaround is to add
SendCommand
permissions to the event targetTherefore, likely solution would be to include this permission in the Lambda-function that gets provisioned.
Additional Information/Context
No response
CDK CLI Version
2.99.1 (build b2a895e)
Framework Version
No response
Node.js Version
v18.18.0
OS
Windows 10
Language
Typescript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: