Created
June 9, 2018 13:15
-
-
Save rajeevprasanna/33425fe457a6d346e6a2c622863c2aaa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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