I've set some properties with their values in Elastic Beanstalk on Amazon. An example is:
I have a .NET application which I will deploy on an EC2 Windows server with IIS. The .NET project contains an .ebextensions
folder in which we include .config
files to do further configurations.
Now is my question. Am I able to read the value of a property (so read "root" from property DB.Username" inside a .config
file in the .ebextensions
folder?
I tried something like this but it seems that a property of Elastic Beanstalk isn't a real Windows environment variable
commands:
010-01-test:
command: echo %DB.Username%
I know those variables are also used in web.config
in my project. But it seems an ugly solution to me to get the values out of this file?