Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to access cloud environment variables to crx/de or any configuration

Avatar

Community Advisor

Hi All,

  I have to add environment specific (uat and prod) token and api key on cloud instead of creating separate OSGI configuration for each environment.I hav found how to set the environment variables on cloud for each environment on cloud itself using below link

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/using-...

But I could not able to see how to access these variables in my OSGI configuration.

Kr,

Sanjay

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

In AEM as a Cloud Service you cannot configure replication agents.

View solution in original post

4 Replies

Avatar

Level 10

Hi @Sanjay_Bangar ,

 

You can access like below in OSGI configs.

 

 

{
 "url": "$[env:server-url]"
}

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/deploy... 

 

Avatar

Community Advisor

Hi @Kishore_Kumar_ ,

     I tried the way they have mentioned but I want environment variables value in replication agent but i could not able to do it using above approach.

 

Avatar

Correct answer by
Employee Advisor

In AEM as a Cloud Service you cannot configure replication agents.

Avatar

Administrator

@Sanjay_Bangar 

[Webinar | AEM GEMs] Looking under the hood - Cloud Manager 2022 | Register: https://adobe.ly/3t4jfgp  & Ask Questions related to this Webinar: https://adobe.ly/3O0rdzd 

Date &Time: Wednesday, June 15, 2022 - 8 am PDT OR 5 pm CET OR 8.30 pm IST
Speakers: Remus Stratulat & Shankari Panchapakesan

Share this within your Organisation and with your AEM peers!!



Kautuk Sahni