Expressions are evaluated and replaced with the expected values when importing a configuration into an AM instance. Attempting to import AM JSON configuration files containing expressions that are not defined causes an error message similar to the following:
import-config –path /tmp/myExportedConfigFiles/realms/root/EmailService.json /tmp/myExportedConfigFiles/realms/root/EmailService.json Importing file /tmp/myExportedConfigFiles/realms/root/EmailService.json ——————————————————————— IMPORT ERRORS ——————————————————————— Failed to import /tmp/myExportedConfigFiles/realms/root/EmailService.json : Can’t substitute source value: unresolved variables ([email.service.port]) or cycles detected ([])
Also make sure:
1. We have already provided expression files to Amster, else use the envconfig command followed by the full path to a directory or a file. For example:
am> envconfig /path/to/expressionfiles/
2. Make sure of correct format of expressionfiles if these are json files.
Ref: https://backstage.forgerock.com/docs/amster/6.5/user-guide/#expression-order