'aws: update lambda environment variables remotely from another app
I have an AWS lambda function implemented in Nodejs. FYI, This function is used to process data for a separate web app - which is an asp.net web app which is not hosted in AWS. To process the data, the lambda function requires some information - a set of 6-10 variables - which is set as environment variables for the lambda function. Currently these environment variables are set in aws console and everything works fine. However, setting environment variables manually via console is not scalable when moving to production because the environment variables keep changing throughout the (maybe 4-6 times per day) at random intervals.
Question:
How to update the lambda function environment variables via api from the external asp.net application?
Solution 1:[1]
one way is to filter all enabled country and display them
const arr = [{"name": "pay1","isEnabled": true},{"name": "pay2","isEnabled": true},,{"name": "pay2","isEnabled": false}]
const arrFilt = arr.filter(oneCountry => oneCountry.isEnabled);
arrFilt.forEach(item => {
console.log(`${item.name} enabled`)
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | jeremy-denis |
