课程: AWS for Developers: Data-Driven Serverless Applications with Kinesis

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Creating the first pipe with AWS SAM

Creating the first pipe with AWS SAM

- [Instructor] Now that you have the Kinesis Data Stream and the EventBridge Event Bus, you can create a pipe in between that will forward the event from the Data Stream to the Event Bus. So in order to create a pump pipe with SAM, we can define the pipe first. We are going to add a new resource of the type, pipe. I call it, "EDAPipe". Then we are going to give a name to that pipe, the stack name, "-eda-pipe". We are going to give a role that we have not yet defined. The source is the Kinesis Data Stream. The source parameters are in a way similar to the event source mapping. We need to define what is the starting position and what is the batch size. And the target is the custom event bus that we just created with that rule that will forward all the events to a log group. Good, so we said that we need a role. Again, we're back to permissions, IAM permissions, and I will create a role. This role again has a lot of…

内容