Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeevprasanna/33425fe457a6d346e6a2c622863c2aaa to your computer and use it in GitHub Desktop.
Save rajeevprasanna/33425fe457a6d346e6a2c622863c2aaa to your computer and use it in GitHub Desktop.
//Lmabda function1
//API1 : takes feature names as user input and returns all sub processses running status in response.
def lambda_handler(event, context):
config = load config from env variable.
take service names from user input(event)
extract corresponding micro services names mapped to feature name.
now we hit all machines where these micro services are running aggregate the status and return.
//API2 : take feature name and perform pre configured troubleshoot steps based on user input
def lambda_handler(event, context):
config = load config from env variable.
take service names from user input(event)
extract corresponding micro services names mapped to feature name.
also read troubleshoot commands to fix the feature issues.
perform commands and return result.
In this scenario, i have two different api end points and two different lambda functions. But both share same config.
Currently i am giving config in lambda environment variable. How can i make sure both API's or Lambda functions read single config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment