diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f8079ce..1497f3f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -60,6 +60,9 @@ jobs: TF_VAR_hcaptcha_secret: ${{ secrets.HCAPTCHA_SECRET }} TF_VAR_direct_url: ${{ secrets.DIRECT_URL }} TF_VAR_database_url: ${{ secrets.DATABASE_URL }} + TF_VAR_redis_host: ${{ secrets.REDIS_HOST }} + TF_VAR_redis_port: ${{ secrets.REDIS_PORT }} + TF_VAR_redis_password: ${{ secrets.REDIS_PASSWORD }} with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/terraform/ecs/variables.tf b/terraform/ecs/variables.tf index 6ff08ab..5722c3a 100644 --- a/terraform/ecs/variables.tf +++ b/terraform/ecs/variables.tf @@ -98,3 +98,18 @@ variable "supabase_jwt_secret" { type = string sensitive = true } + +variable "redis_host" { + type = string + sensitive = true +} + +variable "redis_port" { + type = string + sensitive = true +} + +variable "redis_password" { + type = string + sensitive = true +} diff --git a/terraform/redis/main.tf b/terraform/redis/main.tf index 17a395d..6274bd7 100644 --- a/terraform/redis/main.tf +++ b/terraform/redis/main.tf @@ -1,7 +1,7 @@ resource "aws_elasticache_cluster" "cache" { cluster_id = replace("${var.app_name}-${var.redis_name}", "_", "-") engine = "redis" - node_type = var.node_type + node_type = "cache.t2.micro" num_cache_nodes = 1 parameter_group_name = "default.redis6.x" engine_version = "6.x" diff --git a/terraform/variables.tf b/terraform/variables.tf index 827ecfa..053c4be 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -55,10 +55,12 @@ variable "redis_host" { type = string sensitive = true } + variable "redis_port" { type = string sensitive = true } + variable "redis_password" { type = string sensitive = true