Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

any way to create usable URL for cloud AEM author instances, instead of https://author-p29345-f121051.adobeaemcloud.com/ etc.

Avatar

Level 9

We have 7 AEM cloud envs, e.g. 

dev = https://author-p29234-f121051.adobeaemcloud.com/

uat = https://author-p23425-e098098.adobeaemcloud.com/

prod = https://author-p29345-f121058.adobeaemcloud.com/ 

etc.

 

The problem is, it's impossible to remember these, or know which env you are on.

You might think you are on dev, create or delete some content, then realise its uat, screwing up the testing.

 

Is there any way to create a nice name/url?  

 

Neither DNS CNAMES nor Aliases work.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @TB3dock 

 

No there is no way we can update these URLs.

But you can think of using "AEM Environment Indicator" from ACS Commons with which you can define a color code for each of the environment and using that you can identify which environment it is.

https://adobe-consulting-services.github.io/acs-aem-commons/features/environment-indicator/index.htm...

 

asutosh_jena_0-1630054517274.png

 

Thanks!

View solution in original post

12 Replies

Avatar

Correct answer by
Community Advisor

Hi @TB3dock 

 

No there is no way we can update these URLs.

But you can think of using "AEM Environment Indicator" from ACS Commons with which you can define a color code for each of the environment and using that you can identify which environment it is.

https://adobe-consulting-services.github.io/acs-aem-commons/features/environment-indicator/index.htm...

 

asutosh_jena_0-1630054517274.png

 

Thanks!

Avatar

Level 9

Hi, thanks for that. Unfortunately, this article only applies to on prem AEM. Cloud AEM does not allow editing or viewing of the OSGI properties. We can do it through code, but for that we need to know the name of the osgi configuration file. Any ideas what this might be?

Avatar

Community Advisor

Hi @TB3dock 

Yes AACS does not allow us to view the OSGi Property but you can try this on your local AACS instance first to see what configuration it is.

 

Here is the configuration:

com.adobe.acs.commons.wcm.impl.AemEnvironmentIndicatorFilter.xml

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
browser-title-prefix="Author"
css-color="#FF7F50"
inner-html="Author"/>

 

You can create similar one for AACS as well. 

Avatar

Level 9

Awesome thanks! How could I try it on my local env? I can view or edit existing osgi configs here: http://localhost:4502/system/console/configMgrn but there is no option to create a newone (that I can find). Also, I dont belive the local env has any kind of usable identifier, e.g. its not dev, stage or prod.  I am guessing I can only test this on envs with those 3 designations.

Avatar

Community Advisor

@TB3dock You can start your local AEM instance with "dev" run mode, by adding the below property in sling.properties file which is located under <AEM installation directory>/crx-quickstart/conf.

 

sling.run.modes=dev, author

 

asutosh_jena_0-1630079950977.png

 

 

You can create the OSGi configuration as I mentioned above and test it on local.

 

Inner HTML will add a text showing as "author" along with the color.

Avatar

Community Advisor

Hi @TB3dock 

 

I have configured my local AEM as Cloud Service instance to run with "dev" run mode and added the OSGi configuration in code to identify the dev instance with green color code.

 

asutosh_jena_0-1630126597573.png

asutosh_jena_1-1630126636910.png

Just ensure you have ACS Commons https://adobe-consulting-services.github.io/acs-aem-commons/ installed on your instance.

 

Thanks!

Avatar

Community Advisor

It will add a Text as "Author" along with color on your browser to identify it's Author.

Let's say you want to keep green color for development environment, then you might get confused with author and publish. So you can use green with "author" as the inner-html for author instance and green with "publish" as the inner-html for publish instance.

Avatar

Level 9

We tried this. it only works for dev. for stage and prod, it also shows dev.  This appears to be a limitation of the cloud AEM.  It works for non cloud only.

Avatar

Employee Advisor

Hi @TB3dock ,

 

There is no way we can change the urls, but Adobe is working on this.

Custom Author environments' domains - Adobe Experience League Community - 413262

 

As suggested by @Asutosh_Jena_, you can use "AEM Environment Indicator" .

 

Hope this helps!!
Thanks