Skip to content

Commit 81889f7

Browse files
Updated doc on Release notes
1 parent 47e1f5f commit 81889f7

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

CONTRIBUTING.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,30 @@ First of all, thanks for contributing!. Before contributing please read the [COD
3636
Add the layer arn generated from build command output to your lambda function by following instructions in [docs](https://help.sumologic.com/03Send-Data/Collect-from-Other-Data-Sources/Collect_AWS_Lambda_Logs_using_an_Extension).Test by running the function manually. Confirm that logs are coming to Sumo Logic.
3737

3838
## Releasing the layers
39-
1. Change the *AWS_PROFILE* environment variable using below command. The profile should point to sumocontent aws account.
40-
`export AWS_PROFILE=<sumo content profile>`
41-
1. Update the layer version in *config/version.go*.
42-
1. Go to scripts folder
43-
`cd scripts/`
44-
1. Change the layer_name variable in zip.sh to avoid replacing the prod.
45-
1. Run below command
46-
`sh zip.sh`
39+
40+
### Notes on AWS Lambda Layer Versions
41+
- Lambda **layer versions are immutable**.
42+
- Once a version (e.g., `v10`) is published, its code and content cannot be modified.
43+
- If changes are needed, you must publish a **new version** (e.g., `v11`).
44+
45+
- Once you **delete a Lambda layer version** (like `v10`), it’s permanently gone.
46+
- You cannot reuse or re-publish that same version number.
47+
- Any new Lambda function or update trying to reference `v10` will fail.
48+
49+
- Existing Lambda functions that were already using `v10` may still run for a while,
50+
because AWS caches the layer code internally.
51+
- However, once you update or redeploy them, `v10` will no longer be available.
52+
53+
1. Change the *AWS_PROFILE* environment variable using below command. The profile should point to sumocontent aws account.
54+
`export AWS_PROFILE=<sumo content profile>`
55+
1. Update the layer version in *config/version.go*.
56+
1. Go to scripts folder
57+
`cd scripts/`
58+
1. Change the layer_name variable in zip.sh to avoid replacing the prod.
59+
1. Run the following command to publish the layer:
60+
`sh zip.sh`
61+
1. Run the following command to verify that the layer version is published across regions:
62+
`sh verify_layer_versions.sh`
4763

4864
### Github Release
4965

0 commit comments

Comments
 (0)