1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
2
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).
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 9 meses
- OFICIAL DE AWSActualizada hace 2 años
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.