1 Answer
- Newest
- Most votes
- Most comments
1
Hi Oleg.
You can use the .NET Configuration Provider to easily read information from AWS Systems Manager Parameter Store. This extension is hosted on GitHub and is free and open source.
I hope this helps (if so, please accept the answer).
Relevant content
- asked a year ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
Hi Jose, thank you for the interesting link. One question: how can I detect where code is executing to get config parameters from appsettings file when local machine and from Parameter store when in AWS?
Oleg,
You would use environment variables for that. Note in the documentation the one called AWS_EXECUTION_ENV. It will return something prefixed with "AWS_Lambda" if it is running in Lambda.
I hope this answers the question.
Also check LAMBDA_TASK_ROOT which will be null or empty for an environment other than Lambda.