Skip to content

Commit

Permalink
fix: add TF vars
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Jan 31, 2024
1 parent a780a71 commit 1aa0b92
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PORT=8080
LOG_LEVEL=INFO
DATABASE_URL=mongodb://admin:admin@mongo:27017/keyserver?authSource=admin
PROJECT_ID=

# Telemetry
TELEMETRY_ENABLED=true
Expand Down
1 change: 1 addition & 0 deletions terraform/ecs/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ resource "aws_ecs_task_definition" "app_task" {
environment = [
{ "name" = "DATABASE_URL", "value" = var.keystore_addr },
{ "name" = "LOG_LEVEL", "value" = var.log_level },
{ "name" = "PROJECT_ID", "value" = var.project_id },

{ "name" = "TELEMETRY_PROMETHEUS_PORT", "value" = tostring(local.telemetry_port) },

Expand Down
5 changes: 5 additions & 0 deletions terraform/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ variable "ofac_blocked_countries" {
type = string
}

variable "project_id" {
description = "Project ID for Blockchain API"
type = string
}

#---------------------------------------
# Monitoring

Expand Down
1 change: 1 addition & 0 deletions terraform/res_application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module "ecs" {
keystore_addr = module.keystore.connection_url
log_level = var.log_level
ofac_blocked_countries = var.ofac_blocked_countries
project_id = var.project_id

# Monitoring
prometheus_endpoint = aws_prometheus_workspace.prometheus.prometheus_endpoint
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ variable "ofac_blocked_countries" {
default = ""
}

variable "project_id" {
description = "Project ID for Blockchain API"
type = string
}

#-------------------------------------------------------------------------------
# Keystore

Expand Down

0 comments on commit 1aa0b92

Please sign in to comment.