Gallery
Search…
Using Cached Services

Connecting a Cached Service

Before you adjust your terraform services to use a cached service, you'll first want to connect the cached service to your template with Gallery. To do this, go to the cached services tab, and click "Link Cached Service."

Using Your Cached Service in Terraform

When you link a cached service with Gallery, we add a terraform_remote_state data source to connect the cached service with your template. Therefore, if you have a cached service named db_service and you'd like to access the db_name output, you would need to access the data.terraform_remote_state.db_service.outputs.db_name selector from within your template terraform.