Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JSON support for AEM as Cloud service environment variables

rampai
Level 5
Level 5

Hi All,

 

Is there anything down the line to make environment variables more flexible to allow like a JSON of Strings?

 

That way we don't have to maintain separate variables for doing similar operations for different sites. e.g. I can have ten loggers writing to error.log but would want to set only one of them to Debug at a given point in time. Currently, I would need an environment variable for each Logger or a generic Log Level variable that will set all logs to same level. Changing generic variable level to Debug will set it for all ten sites at once which may not be the intention.

 

Is there anything already available to achieve such a use case?

 

Thanks,

Ram

1 Reply
justin_at_adobe2
Employee
Employee

@rampai I'm not sure how it relates to the use case you're describing, but aside from length limitations, there's no reason you can't store a JSON object encoded as a String in an environment variable. The only issue I can imagine is that when using the Cloud Manager CLI it might be hard to get the escaping right on the command line. In this context the --jsonStdin or --jsonFile flags might be easier to work with.