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) ? | Community
Skip to main content
Sharvesh106
Level 2
August 5, 2024
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) ?

  • August 5, 2024
  • 1 reply
  • 935 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

1 reply

arunpatidar
Community Advisor
Community Advisor
August 5, 2024
Sharvesh106
Level 2
August 5, 2024

create group $[env:GROUP_NAME] with path sample

 

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 5, 2024

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