Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wacky-socks-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@docs/ensnode": patch
---

Included ENSRainbow Searchlight instance on _Hosted ENSRainbow Instances_ page.
32 changes: 20 additions & 12 deletions .github/workflows/deploy_ensnode_blue_green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
echo "SEPOLIA_INDEXER_SVC_ID="${{ secrets.GREEN_SEPOLIA_INDEXER_SVC_ID }} >> "$GITHUB_ENV"
#ENSRAINBOW
echo "ENSRAINBOW_SVC_ID="${{ secrets.GREEN_ENSRAINBOW_SVC_ID }} >> "$GITHUB_ENV"
#ENSRAINBOW SEARCHLIGHT
echo "ENSRAINBOW_SEARCHLIGHT_SVC_ID="${{ secrets.GREEN_ENSRAINBOW_SEARCHLIGHT_SVC_ID }} >> "$GITHUB_ENV"
#ENSADMIN
echo "ENSADMIN_SVC_ID="${{ secrets.GREEN_ENSADMIN_SVC_ID }} >> "$GITHUB_ENV"
echo "SLACK_TITLE=':large_green_circle: GREEN environment is now having new ENSNode version - '"${{ env.TAG }} >> "$GITHUB_ENV"
Expand All @@ -98,6 +100,8 @@ jobs:
echo "SEPOLIA_INDEXER_SVC_ID="${{ secrets.BLUE_SEPOLIA_INDEXER_SVC_ID }} >> "$GITHUB_ENV"
#ENSRAINBOW
echo "ENSRAINBOW_SVC_ID="${{ secrets.BLUE_ENSRAINBOW_SVC_ID }} >> "$GITHUB_ENV"
#ENSRAINBOW SEARCHLIGHT
echo "ENSRAINBOW_SEARCHLIGHT_SVC_ID="${{ secrets.BLUE_ENSRAINBOW_SEARCHLIGHT_SVC_ID }} >> "$GITHUB_ENV"
#ENSADMIN
echo "ENSADMIN_SVC_ID="${{ secrets.BLUE_ENSADMIN_SVC_ID }} >> "$GITHUB_ENV"
echo "SLACK_TITLE=':large_blue_circle: BLUE environment is now having new ENSNode version - '"${{ env.TAG }} >> "$GITHUB_ENV"
Expand Down Expand Up @@ -133,24 +137,26 @@ jobs:
}

#ALPHA
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
#MAINNET
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${MAINNET_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${MAINNET_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${MAINNET_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${MAINNET_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
#ALPHA-SEPOLIA
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ALPHA_SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
#V2-SEPOLIA
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${V2_SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${V2_SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${V2_SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${V2_SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
#SEPOLIA
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${SEPOLIA_API_SVC_ID} ${{ env.ENSAPI_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${SEPOLIA_INDEXER_SVC_ID} ${{ env.ENSINDEXER_DOCKER_IMAGE }}
#ENSRAINBOW
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ENSRAINBOW_SVC_ID} ${{ env.ENSRAINBOW_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ENSRAINBOW_SVC_ID} ${{ env.ENSRAINBOW_DOCKER_IMAGE }}
#ENSRAINBOW SEARCHLIGHT
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ENSRAINBOW_SEARCHLIGHT_SVC_ID} ${{ env.ENSRAINBOW_DOCKER_IMAGE }}
#ENSADMIN
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ENSADMIN_SVC_ID} ${{ env.ENSADMIN_DOCKER_IMAGE }}
update_service_image ${RAILWAY_ENVIRONMENT_ID} ${ENSADMIN_SVC_ID} ${{ env.ENSADMIN_DOCKER_IMAGE }}

# Update DATABASE_SCHEMA for each indexer based on input tag
- name: Update shared environment variable
Expand Down Expand Up @@ -208,6 +214,8 @@ jobs:
redeploy_service ${RAILWAY_ENVIRONMENT_ID} ${SEPOLIA_INDEXER_SVC_ID}
#ENSRAINBOW
redeploy_service ${RAILWAY_ENVIRONMENT_ID} ${ENSRAINBOW_SVC_ID}
#ENSRAINBOW SEARCHLIGHT
redeploy_service ${RAILWAY_ENVIRONMENT_ID} ${ENSRAINBOW_SEARCHLIGHT_SVC_ID}
#ENSADMIN
redeploy_service ${RAILWAY_ENVIRONMENT_ID} ${ENSADMIN_SVC_ID}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_ensnode_yellow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
# AWS_REGION should be the same as Terraform S3 bucket state region.
AWS_REGION: us-east-1
TF_VAR_ensnode_version: ${{ inputs.tag }}
TF_VAR_ensindexer_label_set_id: ${{ vars.LABEL_SET_ID }}
TF_VAR_ensindexer_label_set_version: ${{ vars.LABEL_SET_VERSION }}
TF_VAR_ensrainbow_label_set_id: ${{ vars.LABEL_SET_ID }}
TF_VAR_ensrainbow_label_set_version: ${{ vars.LABEL_SET_VERSION }}
# ENSRainbow Searchlight instance allows setting label set version only,
# while the label set ID is fixed to "searchlight".
# ENSRainbow Subgraph has both label set ID and label set version fixed.
TF_VAR_ensrainbow_searchlight_label_set_version: ${{ vars.ENSRAINBOW_SEARCHLIGHT_LABEL_SET_VERSION }}
TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }}
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow sets TF_VAR_db_schema_version, but there is no corresponding db_schema_version variable defined in terraform/variables.tf. This will cause Terraform to fail with an "undeclared variable" error. Either add the variable to terraform/variables.tf and pass it to the ensrainbow module, or remove this line if the default value of "3" in terraform/modules/ensrainbow/variables.tf is always appropriate.

Suggested change
TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }}

Copilot uses AI. Check for mistakes.
TF_VAR_anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# For now only one Terraform environment is active. In future this will be calculated based on workflow input.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy_switch_ensnode_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ jobs:
# SEPOLIA
redis-cli -u $REDIS_URL SET traefik/http/routers/sepolia-api-router/service "${TARGET_ENVIRONMENT}-sepolia-api"
redis-cli -u $REDIS_URL SET traefik/http/routers/sepolia-indexer-router/service "${TARGET_ENVIRONMENT}-sepolia-indexer"

redis-cli -u $REDIS_URL SET traefik/http/routers/lb-header-sepolia-api-router/service "${TARGET_ENVIRONMENT}-sepolia-api"
redis-cli -u $REDIS_URL SET traefik/http/routers/lb-header-sepolia-indexer-router/service "${TARGET_ENVIRONMENT}-sepolia-indexer"

# ENSRAINBOW
redis-cli -u $REDIS_URL SET traefik/http/routers/ensrainbow-api-router/service "${TARGET_ENVIRONMENT}-ensrainbow-api"

# ENSRAINBOW SEARCHLIGHT
redis-cli -u $REDIS_URL SET traefik/http/routers/ensrainbow-searchlight-api-router/service "${TARGET_ENVIRONMENT}-ensrainbow-searchlight-api"

- name: Promote ENSAdmin Vercel Deployment
run: |
chmod +x ./.github/scripts/promote_ensadmin.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/plan_terraform_ensnode_yellow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
# AWS_REGION should be the same as Terraform S3 bucket state region.
AWS_REGION: us-east-1
TF_VAR_ensnode_version: ${{ inputs.tag || 'latest' }}
TF_VAR_ensindexer_label_set_id: ${{ vars.LABEL_SET_ID }}
TF_VAR_ensindexer_label_set_version: ${{ vars.LABEL_SET_VERSION }}
TF_VAR_ensrainbow_label_set_id: ${{ vars.LABEL_SET_ID }}
TF_VAR_ensrainbow_label_set_version: ${{ vars.LABEL_SET_VERSION }}
# ENSRainbow Searchlight instance allows setting label set version only,
# while the label set ID is fixed to "searchlight".
# ENSRainbow Subgraph has both label set ID and label set version fixed.
TF_VAR_ensrainbow_searchlight_label_set_version: ${{ vars.ENSRAINBOW_SEARCHLIGHT_LABEL_SET_VERSION }}
TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }}
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow files set TF_VAR_db_schema_version (lines 34 in plan_terraform_ensnode_yellow.yml and deploy_ensnode_yellow.yml), but there is no corresponding db_schema_version variable defined in terraform/variables.tf. This will cause Terraform to fail with an "undeclared variable" error. Either add the variable to terraform/variables.tf and pass it to the ensrainbow module, or remove the TF_VAR_db_schema_version from the workflow files if the default value of "3" in terraform/modules/ensrainbow/variables.tf is always appropriate.

Suggested change
TF_VAR_db_schema_version: ${{ vars.DB_SCHEMA_VERSION }}

Copilot uses AI. Check for mistakes.
TF_VAR_anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# For now only one Terraform environment is active. In future this will be calculated based on workflow input.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ Copy `.env.sample` to `.env.local` and fill in your configuration values:

```bash
# ENSNode configuration
ensnode_version = "latest" # or specific version
ensindexer_label_set_id = "ensindexer_label_set_id"
ensindexer_label_set_version = "ensindexer_label_set_version"
ensrainbow_label_set_id = "ensrainbow_label_set_id"
ensrainbow_label_set_version = "ensrainbow_label_set_version"
anthropic_api_key = "your_anthropic_api_key"
ensnode_version = "0.0.0" # pin to the specific version you want to use as found at https://github.com/namehash/ensnode/releases
ensrainbow_searchlight_label_set_version = "0" # pint to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "pint" should be "pin".

Suggested change
ensrainbow_searchlight_label_set_version = "0" # pint to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version
ensrainbow_searchlight_label_set_version = "0" # pin to the specific version, see https://ensnode.io/ensrainbow/concepts/glossary/#label_set_version

Copilot uses AI. Check for mistakes.
anthropic_api_key = "your_anthropic_api_key"

# Render configuration
render_api_key = "your_render_api_key"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ sidebar:

import { LinkCard } from '@astrojs/starlight/components';

NameHash Labs operates a freely available instance of ENSRainbow for the ENS community.
NameHash Labs operates freely available instances of ENSRainbow for the ENS community.

| Provider | URL | Rate Limit | Label Set ID | Label Set Version |
|----------|-----|------------|--------------|-------------------|
| NameHash Labs | https://api.ensrainbow.io | None | `subgraph` | `0` |
| Name | Provider | URL | Rate Limit | Label Set ID | Label Set Version |
|------|----------|-----|------------|--------------|-------------------|
| ENSRainbow Subgraph | NameHash Labs | https://api.ensrainbow.io | None | `subgraph` | `0` |
| ENSRainbow Searchlight | NameHash Labs | https://api.searchlight.ensrainbow.io | None | `searchlight` | `0` |

This service is provided free of charge with no API key required, has no rate limiting, and is maintained and monitored by the NameHash Labs team.
These services are provided free of charge with no API key required, have no rate limiting, and are maintained and monitored by the NameHash Labs team.

:::note[No Uptime Guarantees]
While we aim for high availability, if you need guaranteed uptime or want to keep your requests private, we recommend [deploying your own instance](/ensrainbow/deploying/).
Expand Down
5 changes: 1 addition & 4 deletions terraform/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ TF_VAR_render_owner_id=
TF_VAR_render_environment=
TF_VAR_ensnode_version=
TF_VAR_anthropic_api_key=
TF_VAR_ensindexer_label_set_id=
TF_VAR_ensindexer_label_set_version=
TF_VAR_ensrainbow_label_set_id=
TF_VAR_ensrainbow_label_set_version=
TF_VAR_ensrainbow_searchlight_label_set_version=
# Mainnet
TF_VAR_ethereum_mainnet_rpc_url=
TF_VAR_base_mainnet_rpc_url=
Expand Down
122 changes: 82 additions & 40 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,52 +18,84 @@ locals {
hosted_zone_name = "ensnode.io"
# See https://render.com/docs/blueprint-spec#region
render_region = "ohio"


# ENSRainbow instances with their specific configurations.
ensrainbow_instances = {
# The Subgraph instance uses fixed label set ID "subgraph" and
# fixed label set version "0".
subgraph = {
ensrainbow_label_set_id = "subgraph"
ensrainbow_label_set_version = "0"
}

# The Searchlight instance uses fixed label set ID "searchlight" and
# configurable label set version.
searchlight = {
ensrainbow_label_set_id = "searchlight"
ensrainbow_label_set_version = var.ensrainbow_searchlight_label_set_version
}
}

# ENSIndexer instances with their specific configurations.
# Subgraph instances use the ENSRainbow Subgraph instance.
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar issue: The comment on line 41 ends with a period, but line 42 continues the sentence starting with "while". The period on line 41 should be a comma instead to properly connect these two clauses.

Suggested change
# Subgraph instances use the ENSRainbow Subgraph instance.
# Subgraph instances use the ENSRainbow Subgraph instance,

Copilot uses AI. Check for mistakes.
# while Alpha-style and v2 instances use the ENSRainbow Searchlight instance.
ensindexer_instances = {
sepolia = {
ensnode_indexer_type = "sepolia"
ensnode_environment_name = var.render_environment
database_schema = "sepoliaSchema-${var.ensnode_version}"
plugins = "subgraph"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = true
ensnode_indexer_type = "sepolia"
ensnode_environment_name = var.render_environment
database_schema = "sepoliaSchema-${var.ensnode_version}"
plugins = "subgraph"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = true
ensindexer_label_set_id = "subgraph"
ensindexer_label_set_version = "0"
}
v2-sepolia = {
ensnode_indexer_type = "v2-sepolia"
ensnode_environment_name = var.render_environment
database_schema = "v2SepoliaSchema-${var.ensnode_version}"
plugins = "ensv2,protocol-acceleration"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = false
ensnode_indexer_type = "v2-sepolia"
ensnode_environment_name = var.render_environment
database_schema = "v2SepoliaSchema-${var.ensnode_version}"
plugins = "ensv2,protocol-acceleration"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = false
ensindexer_label_set_id = "searchlight"
ensindexer_label_set_version = var.ensrainbow_searchlight_label_set_version
}
mainnet = {
ensnode_indexer_type = "mainnet"
ensnode_environment_name = var.render_environment
database_schema = "mainnetSchema-${var.ensnode_version}"
plugins = "subgraph"
namespace = "mainnet"
render_instance_plan = "standard"
subgraph_compat = true
ensnode_indexer_type = "mainnet"
ensnode_environment_name = var.render_environment
database_schema = "mainnetSchema-${var.ensnode_version}"
plugins = "subgraph"
namespace = "mainnet"
render_instance_plan = "standard"
subgraph_compat = true
ensindexer_label_set_id = "subgraph"
ensindexer_label_set_version = "0"
}
alpha = {
ensnode_indexer_type = "alpha"
ensnode_environment_name = var.render_environment
database_schema = "alphaSchema-${var.ensnode_version}"
plugins = "subgraph,basenames,lineanames,threedns,protocol-acceleration,registrars,tokenscope"
namespace = "mainnet"
render_instance_plan = "standard"
subgraph_compat = false
ensnode_indexer_type = "alpha"
ensnode_environment_name = var.render_environment
database_schema = "alphaSchema-${var.ensnode_version}"
plugins = "subgraph,basenames,lineanames,threedns,protocol-acceleration,registrars,tokenscope"
namespace = "mainnet"
render_instance_plan = "standard"
subgraph_compat = false
ensindexer_label_set_id = "searchlight"
ensindexer_label_set_version = var.ensrainbow_searchlight_label_set_version
}

alpha-sepolia = {
ensnode_indexer_type = "alpha-sepolia"
ensnode_environment_name = var.render_environment
database_schema = "alphaSepoliaSchema-${var.ensnode_version}"
plugins = "subgraph,basenames,lineanames,registrars"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = false
ensnode_indexer_type = "alpha-sepolia"
ensnode_environment_name = var.render_environment
database_schema = "alphaSepoliaSchema-${var.ensnode_version}"
plugins = "subgraph,basenames,lineanames,registrars"
namespace = "sepolia"
render_instance_plan = "starter"
subgraph_compat = false
ensindexer_label_set_id = "searchlight"
ensindexer_label_set_version = var.ensrainbow_searchlight_label_set_version
}
}
}
Expand Down Expand Up @@ -91,13 +123,15 @@ module "ensdb" {
module "ensrainbow" {
source = "./modules/ensrainbow"

for_each = local.ensrainbow_instances

render_environment_id = render_project.ensnode.environments["default"].id
render_region = local.render_region
ensnode_version = var.ensnode_version

# Label set that ENSRainbow will offer to its clients
ensrainbow_label_set_id = var.ensrainbow_label_set_id
ensrainbow_label_set_version = var.ensrainbow_label_set_version
ensrainbow_label_set_id = each.value.ensrainbow_label_set_id
ensrainbow_label_set_version = each.value.ensrainbow_label_set_version
}

module "ensadmin" {
Expand Down Expand Up @@ -131,7 +165,6 @@ module "ensindexer" {
# Common configuration (spread operator merges the map)
hosted_zone_name = local.hosted_zone_name
ensnode_version = var.ensnode_version
ensrainbow_url = module.ensrainbow.ensrainbow_url

# Common configuration
render_region = local.render_region
Expand All @@ -142,6 +175,15 @@ module "ensindexer" {
quicknode_endpoint_name = var.quicknode_endpoint_name

# The "fully pinned" label set reference that ENSIndexer will request ENSRainbow use for deterministic label healing across time. This label set reference is "fully pinned" as it requires both the labelSetId and labelSetVersion fields to be defined.
ensindexer_label_set_id = var.ensindexer_label_set_id
ensindexer_label_set_version = var.ensindexer_label_set_version
ensindexer_label_set_id = each.value.ensindexer_label_set_id
ensindexer_label_set_version = each.value.ensindexer_label_set_version

# The internal URL to the relevant ENSRainbow service instance
# that this ENSIndexer instance will use.
# Note: Each ENSRainbow instance can be referenced by its label set ID,
# as defined in local.ensrainbow_instances. Also, each ENSIndexer instance
# defines which label set ID it is configured to use.
# We use that label set ID config of an ENSIndexer instance to look up
# the specific ENSRainbow module instance and extract its URL output.
ensrainbow_url = module.ensrainbow[each.value.ensindexer_label_set_id].ensrainbow_url
}
3 changes: 2 additions & 1 deletion terraform/modules/ensindexer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ variable "database_schema" {
}

variable "ensrainbow_url" {
type = string
type = string
description = "Internal URL to relevant ENSRainbow service instance (e.g. URL to ENSRainbow Subgraph instance, or ENSRainbow Searchlight)."
}

variable "ensindexer_label_set_id" {
Expand Down
7 changes: 4 additions & 3 deletions terraform/modules/ensrainbow/main.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
locals {
mount_path = "/app/apps/ensrainbow/data"
mount_path = "/app/apps/ensrainbow/data"
resource_name_suffix = var.ensrainbow_label_set_id
}

# For details on "render_web_service", see:
# https://registry.terraform.io/providers/render-oss/render/latest/docs/resources/web_service
resource "render_web_service" "ensrainbow" {
name = "ensrainbow"
name = "ensrainbow-${local.resource_name_suffix}"
plan = "starter"
region = var.render_region
environment_id = var.render_environment_id
Expand All @@ -18,7 +19,7 @@ resource "render_web_service" "ensrainbow" {
}

disk = {
name = "ensrainbow-data"
name = "ensrainbow-data-${local.resource_name_suffix}"
size_gb = 50
mount_path = local.mount_path
}
Expand Down
Loading
Loading