Linking Resources
Connect resources in a Facets blueprint, wiring a Postgres database to a Service with environment variables and a Service to an Ingress with ingress rules.
How to link Resources?
Linking resources refers to establishing connections between different resources, enabling them to interact and share information with each other.
Linking a Postgres resource to a Service resource
In this example, we will be linking a Postgres resource to a Service resource using Environment Variables.
-
First, ensure you have both a Service and a Postgres resource created within your Blueprint.
-
Navigate to the Blueprint tab and select the Service resource you want to connect to the Postgres resource.

-
Select Connect with other resource in the drop-down.

-
Now, select the corresponding Postgres database, enter the Key and select the required Value.

-
Click Save.
You have successfully linked a Service resource with a Postgres database.
Linking a Service resource to an Ingress resource
In this example, we will be linking a Service resource to an Ingress resource using Ingress Rules.
-
First, ensure you have both a Service and an Ingress resource created within your Blueprint.
-
Navigate to the Blueprint tab and select the Ingress resource you want to connect to the Service resource.
-
Select Configure from the drop-down.
-
In the Form mode, under Ingress Rules, click Add New Entry.
-
Mention the Service Name, Path, and Port.

-
Click Save Changes.

You have successfully linked a Service resource with an Ingress resource.
Types of Resources
Compare the three Facets resource types: normal resources deployed per environment, inherited resources shared across environments, and provided externals.
Dollar Referencing
Use Facets dollar referencing to wire resources together, pulling one resource's output values into another's JSON configuration with autocomplete.