Alright, so I get you can define environment variables within an environment.config
file in the .ebextensions
folder.
But let's say I want the AWS Account ID to be available as an environment variable here. Is there a way to dynamically retrieve that value given the context in which the Elastic BeanStalk application is deployed?
Also is there a way to refer to other environment variables within the config file? For example, given we're working within .ebextensions/environment.config
:
aws:elasticbeanstalk:application:environment:
foo: '123'
bar: hello-${foo}
Any pointers are greatly appreciated here, thanks!