# Adding existing events to Lambda Function

**URL:** <https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936>\
**Category:** Serverless Framework\
**Created:** [November 22, 2019, 7:21am UTC](https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936 "2019-11-22T07:21:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ValentinaRodrigues](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/valentinarodrigues/32/3787_2.png) [@ValentinaRodrigues](https://forum.serverless.com/u/ValentinaRodrigues)\
**Post date:** [November 22, 2019, 7:21am UTC](https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936/1 "2019-11-22T07:21:11Z")

</div>

I had created an aws schedule event which I has used in a lambda function some time ago. However I want to use the same event as trigger for another lambda function but I am unable to do via serverless.yml configuration. So when I add the below lines in my yml file and deploy I get a message saying event already exists. How do I attach the event trigger to my lambda function and not create a new event

```auto
      - schedule:
          name: half-an-hour
          description: 'This cron will run every 30 mins'
          rate: cron(0/30 * * * ? *)
          enabled: true
```

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [November 22, 2019, 12:18pm UTC](https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936/2 "2019-11-22T12:18:16Z")

</div>

Welcome to the community Valentina!

Could you post a bit more, ideally all your function definitions in your serverless.yml? Also, would it be a problem for you to change the name of the event?

---

<div class="post-metadata">

**Author:** ![ValentinaRodrigues](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/valentinarodrigues/32/3787_2.png) [@ValentinaRodrigues](https://forum.serverless.com/u/ValentinaRodrigues)\
**Post date:** [November 25, 2019, 5:20pm UTC](https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936/3 "2019-11-25T17:20:31Z")

</div>

Changing the name of the event would create a new event and it will be functional but I was wondering if we could reuse the same event for another lambda function.

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [November 27, 2019, 5:41am UTC](https://forum.serverless.com/t/adding-existing-events-to-lambda-function/9936/4 "2019-11-27T05:41:17Z")

</div>

You can if it is an asynchronous event trigger like SNS, SQS, etc. Its how I get many of my Lambda functions to all get triggered off of one trigger.
