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 times (#3187) #3353

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 19, 2019

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

@rix0rrr
Copy link
Contributor Author

rix0rrr commented Jul 19, 2019

This one was merged into a broken master. Should be merged again once master is fixed and 1.1.0 has successfully been released.

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
@skinny85 skinny85 force-pushed the huijbers/event-targets branch from 9188b47 to e10d846 Compare July 19, 2019 21:42
@skinny85
Copy link
Contributor

skinny85 commented Jul 19, 2019

This one was merged into a broken master. Should be merged again once master is fixed and 1.1.0 has successfully been released.

1.1.0 has been released. Re-triggering the build.

@skinny85 skinny85 merged commit 5879178 into master Jul 19, 2019
@skinny85 skinny85 deleted the huijbers/event-targets branch July 19, 2019 23:17
@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
4 participants