You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-8Lines changed: 24 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,30 @@ First of all, thanks for contributing!. Before contributing please read the [COD
36
36
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.
37
37
38
38
## 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:
0 commit comments