The current scripts that generate the JSON content for $PLATFORM_RELATIONSHIPS currently has an arbitrary fixed key (e.g., database for DB, essearch for Elastic Search, etc.
The value for this key must actually match the name of the relationship that is defined in .platform.app.yaml (example in Bigfoot app):
# .platform.app.yaml
# The relationships of the application with services or other applications.
# The left-hand side is the name of the relationship as it will be exposed
# to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand
# side is in the form `<service name>:<endpoint name>`.
relationships:
database: "mysqldb:mysql"
cache: "memcached:memcached"
In the example above, the value to take into account is the relationship key (database, cache).
The current scripts that generate the JSON content for
$PLATFORM_RELATIONSHIPS
currently has an arbitrary fixed key (e.g.,database
for DB,essearch
for Elastic Search, etc.The value for this key must actually match the name of the relationship that is defined in
.platform.app.yaml
(example in Bigfoot app):In the example above, the value to take into account is the relationship key (
database
,cache
).