Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: add registry auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakowskiii committed Jul 26, 2023
1 parent 2a9118a commit 99892e5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
TF_VAR_relay_url: ${{inputs.relay_url}}
TF_VAR_cast_url: ${{inputs.cast_url}}
TF_VAR_data_lake_bucket_key_arn: ${{env.ANALYTICS_DATA_LAKE_KMS_KEY_ARN}}
TF_VAR_registry_auth_token: ${{secrets.registry_auth_token}}
with:
environment: ${{ inputs.environment }}

Expand Down
1 change: 1 addition & 0 deletions terraform/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ resource "aws_ecs_task_definition" "app_task_definition" {
{ name = "RELAY_URL", value = var.relay_url },
{ name = "CAST_URL", value = var.cast_url },
{ name = "REGISTRY_URL", value = var.registry_url },
{ name = "REGISTRY_AUTH_TOKEN", value = var.registry_auth_token },
],
dependsOn = [
{ containerName = "aws-otel-collector", condition = "START" }
Expand Down
4 changes: 4 additions & 0 deletions terraform/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ variable "registry_url" {
description = "The url of registry with project data"
type = string
}
variable "registry_auth_token" {
description = "The auth token for registry"
type = string
}
1 change: 1 addition & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module "ecs" {
relay_url = var.relay_url
cast_url = var.cast_url
registry_url = var.registry_url
registry_auth_token = var.registry_auth_token

telemetry_sample_ratio = local.environment == "prod" ? 0.25 : 1.0
allowed_origins = local.environment == "prod" ? "https://cloud.walletconnect.com" : "*"
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@ variable "registry_url" {
type = string
default = "https://registry-prod-cf.walletconnect.com"
}

variable "registry_auth_token" {
description = "The auth token for registry"
type = string
}

0 comments on commit 99892e5

Please sign in to comment.