-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
kinesis: model AWS::Kinesis::StreamConsumer (L2 construct) #32050
Comments
CDK Lib already has L1 construct CfnStreamConsumer. Perhaps something that could be supported at Stream L2 construct level, like exposing a method named |
I think a couple of things to consider
Thing is, given how simple the StreamConsumer construct would be, am not sure that an RFC is required. |
Just an update, I'm working on a PR for this |
- introduce `StreamConsumer` construct to model `AWS::Kinesis::StreamConsumer` - introduce `addToResourcePolicy` to enable creating/configuring a resource policy for the consumer - introduce `grant` and `grantRead` for granting permissions - leverage `iam.Grant.addToPrincipalOrResource` in `grant` to be able to use `grant` methods cross environments to update the grantee's iam policy and the consumer's resource policy as needed - update `ResourcePolicy` to support both `Stream` and `StreamConsumer` - update `Stream`'s `grant` to leverage `iam.Grant.addToPrincipalOrResource` for cross-environment support closes aws#32050
Describe the feature
AWS::Kinesis::StreamConsumer is not covered by an L2 construct.
StreamConsumer
enables enhanced fan out.Having been waiting for cloudformation to model kinesis resource policies, to leverage that for a cross-account lambda consumer, I saw that in 2.166.0 release, that the cfn resource has been introduced, and covered by an L2 construct, and utility methods in stream but realized that
StreamConsumer
is unmodeled in cdk.This is a request for
AWS::Kinesis::StreamConsumer
to be covered by an L2 construct, including resource policy utility methodsUse Case
Cross-account lambda kinesis conumer with enhanced fan out
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.166.0
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: