Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(events): allow adding same target to rule multiple time #3352

Closed
wants to merge 9 commits into from

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 19, 2019

I was again too hasty merging this PR. Reviving to iterate on it.


As rule targets can have different input configurations adding the same target multiple times
must be possible.

Move rule target id generation to aws-events where it's easy to simply increment a counter. This
id is passed as an argument to bind() for targets that need to know their given id (e.g. EcsTask).

Add permissionsNode on IFunction to handle permission checks for both functions and singleton
functions.

Fixes #3173


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

jogold and others added 9 commits July 3, 2019 13:15
As rule targets can have different input configurations adding the same target multiple times
must be possible.

Move rule target id generation to `aws-events` where it's easy to simply increment a counter. This
id is passed as an argument to `bind()` for targets that need to know their given id (e.g. `EcsTask`).

Add `permissionsNode` on `IFunction` to handle permission checks for both functions and singleton
functions.

Fixes aws#3173
@rix0rrr
Copy link
Contributor Author

rix0rrr commented Jul 19, 2019

Wasn't actually this PR's fault. Revving here with a cleaner commit history: #3353

@rix0rrr rix0rrr closed this Jul 19, 2019
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission check in aws-events-targets does not work with singleton functions
3 participants