ReferenceEnv var references
References in a blueprint
In a blueprint, Ferry changes each fromDatabase and fromService entry into a reference.
envVars:
- key: DATABASE_URL
fromDatabase: { name: app-db, property: connectionString } # ${{datastore.app-db.connectionString}}
- key: API_HOST
fromService: { type: pserv, name: api, property: hostport } # ${{service.api.hostport}}In a blueprint, you do not write ${{…}}. You write fromDatabase or fromService. Ferry makes the reference from it. The comment on each line shows the result.
Where to read more
- envVars entries: each form of a variable in a blueprint
- Reference properties: the properties that
fromDatabaseandfromServiceaccept