# How to lambda auto update when layer update

**URL:** https://forum.serverless.com/t/how-to-lambda-auto-update-when-layer-update/19008
**Category:** Serverless Framework
**Tags:** aws, lambda, cloudformation
**Created:** [June 21, 2023, 12:03am UTC](https://forum.serverless.com/t/how-to-lambda-auto-update-when-layer-update/19008 "2023-06-21T00:03:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hhhyyy](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@hhhyyy](https://forum.serverless.com/u/hhhyyy)
#### Post date: [June 21, 2023, 12:03am UTC](https://forum.serverless.com/t/how-to-lambda-auto-update-when-layer-update/19008/1 "2023-06-21T00:03:09Z")

</div>

hi

I am using aws layer and lambda.  
Lambda refers to layer.

Let’s make a assumption  
The layer version is 1, and Lambda refers to this version.  
If I update the layer to 2, lambda keeps referring to the previous version, is there a way to force this to update?

thank you
