Resource specific environment variables placeholders need better explanation and examples
complete
B
Bart Verkoeijen
It took me a long time to realise that I had to prefix the BINDABLE_NAME examples on this page with the service name for the resource specific variables to work. Maybe the documentation can show that better per bindable name example.
${my-service.BINDABLE_NAME}
So for database,
${HOSTNAME}
should be ${my-db-service.HOSTNAME}
in reality...John Mulhausen
complete
Answer provided
Sharmita Das
Hi! Prefixing the resource name with the resource-specific variables is already noted in the documentation:
Resource-specific variables need to be prefixed by the resource name, for example ${my-service.BINDABLE_NAME}. The _self prefix can be used to reference the current resource, for example ${_self.BINDABLE_NAME}.
Hope this help!