Closed moelasmar closed 1 month ago
This issue has been queued for processing by our automated system.
## Issue Processing Complete
This issue has been processed successfully.
You can view the processing results here: [Results](https://cdkgithubbugreproducersta-githubissueresultsbucket-anxrgpotfplp.s3.amazonaws.com/moelasmar/CodeQlDemoEcsIssue%2315/moelasmar/CodeQlDemoEcsIssue%2315_results.zip?AWSAccessKeyId=ASIAQUFLP7FHVERYSKX5&Signature=z8hgNmQZeF9pNl2Mhk8lRUDoItA%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEKv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQDxVs3X0H5PMsr8yVjzHBE8gWFn6oV14AtQQC013YPDmQIhALgFjMnm31pKaBnXMQCRNyycS%2BlztXQ2VEy7RO2jcwWJKuQECPT%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQABoMMDQzMzA5MzMyODE1IgwZC1zb7K%2FH2P9dRmYquASIRe5YlpukH5cMD8%2FsGYXvGfNDqPf0pBTQAp6hK3%2Fgnad6hMEvZPcuVwBqpFaDYtOh1ADOtnmLUMSYryYVxzP2Bv%2FyvMYVMFXv6c%2BuHCh98pOGZm3xyG37JOp8KDjXjnSRb4ufD2alPa9ehkglc9Hn8ei0UgEmQJSqAuhJbVzPLJ1%2B7%2BKHgAKz940WaxPqMUDO2M9igwa3X6MAd0nR0hGbQhwuy9otYyG05rPL3yYSJRc6P8TZy0XullcyraXV9kTMXlSgPvieZ7%2FeepZM%2FWOBg9g0rhRyRlwfaeQ9Y2hGl4eN0klWJ0EDFIz8tm3P5abvR9IuCJIft9Lu9Z6LVbrM3NoD7jdQDxApxXF8MLr61Cr8SdO2AGWbnBC9i49FEL7Dj14fyBdX5EtZANzTPPzXjU3OBklbSbcrhTT1nC8FAEhqR0%2BN65bLBldfXPPDmnMyz1%2BjtL%2BrLOmBVvgBxsfcIVOXIF4Lb4QeVyPk0sx1EOUhZt477ZWd2tjp%2BzY26%2BL923W2dml2V66IuNofc5ZED%2FQij3yw1H0jtAn%2FKYFv4jJUk77itfsO8LfwPx1DdZXbAIJTLC67gY%2Fl4JvWBUpoVxbQXs7S1gATyraZz%2BmFUeHCWex3w9%2F5ccbe73l%2FOWh4V%2BS89pbFK%2FZWkSd%2B3h86y%2FMYV7T%2F6wng45nIAQD0IHUehIIoX8oRbH3llV2Wy0INXdbGy1fcFaChp%2BzyjQCMJ5WVkJBrfAG7Oh%2B0OJ6rR7tkECq9xaapMI3u0b4GOqYBw1K4RM7G%2Fz1S6YryUObjZWRJ6eaCEKOSAcwD1z%2B9lsj6uF%2FflmfHisYnItplnjrWcQiEbY%2BYBngG%2FUOmRTnWypfRxa8EEtV2kNP26WuWSBKpzCOMXSUvK%2FdhMWs4wMbiJjdvnp3jIMDzyPd8ERjZP6IkPIrzbKKBpHnc%2BGU3WrCCsy7TIYYqYMGO8TvmO2iAsqqQnPoAL1uJc%2BvKIL7RXR3aRRGs5A%3D%3D&Expires=1742582384)
*This is an automated message from the GitHub Issue Processor.*
Original issue by @arcrank on 2022-09-16T15:44:27Z
Describe the bug
When trying to
grantPutEventsTo
an AWS SP, there is a no-op, and no warnings or errors. I would expect if we added a grant to aiam.ServicePrincipal
that the underlying grant/policy would be created. We can add an SP to the event bus in the console. Tracing back code I myself didn't necessary find a place where this would have failed, or I would have expected if this was not possible to give a failure message.Expected Behavior
I would expect the template to have grant policies attached. If for some reason you weren't allowed to add SPs, I would expect a failure message and error.
Current Behavior
Nothing is logged to the terminal when synthing the template snippet is
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.23.0
Framework Version
No response
Node.js Version
14
OS
MacOs/Linux
Language
Typescript
Language Version
No response
Other information
No response