Expand my Community achievements bar.

SOLVED

In AEM as a Cloud Service, In Repo Init config file how can I access Environment variables and secrets of different environments(DEV, Stage, Prod) ?

Avatar

Level 2

My Repo Init config file is in Json format. The usual method $[env: VAR_NAME] threw syntax error

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Sharvesh106 

 

The jcr.repoinit module only supports plain text (see SLING-6219). Therefore, you need to add the group name in plain text in the environment-specific OSGi config file.



Arun Patidar

View solution in original post

3 Replies

Avatar

Level 2

create group $[env:GROUP_NAME] with path sample

 

Here i am trying to create group dynamically based on the name given on Environment variable

Avatar

Correct answer by
Community Advisor

Hi @Sharvesh106 

 

The jcr.repoinit module only supports plain text (see SLING-6219). Therefore, you need to add the group name in plain text in the environment-specific OSGi config file.



Arun Patidar