Skip to content

Commit

Permalink
fix(env-vars): fix missing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Cali93 committed Jul 7, 2023
2 parents daa7b0c + fd2e9b5 commit c575659
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
15 changes: 15 additions & 0 deletions terraform/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion terraform/redis/main.tf
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c575659

Please sign in to comment.