AWS Lambda setup: add security through an environment variable
PreviousAWS Lambda setup: create Lambda function to connect Snyk to SlackNextAWS Lambda setup: expose a public URL
Last updated
Last updated
More information
Snyk privacy policy© 2024 Snyk Limited | All product and company names and logos are trademarks of their respective owners.
For security reasons the script that you created uses an environment variable: hmac_verification
with a shared secret to validate the payload is coming from Snyk and has not been tampered with.
Follow these steps to add security through an environment variable:
Go to the Configuration tab in the AWS Lambda function.
Click Environment variables.
Add the new environment variable.
Use hmac_verification
as your key.
Enter your preferred secret as the key value. Store this secret somewhere safe for use again later.
For added security, consider using Secrets Manager or Parameter Store for the shared secret.