Skip to content

Commit

Permalink
fix: remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryET committed May 30, 2023
1 parent 65e9f37 commit 50b5a7d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 31 deletions.
8 changes: 4 additions & 4 deletions terraform/ecs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ variable "node_env" {
}

variable "database_url" {
type = string
type = string
sensitive = true
}

variable "direct_url" {
type = string
type = string
sensitive = true
}

Expand All @@ -85,11 +85,11 @@ variable "cookie_name" {
}

variable "cookie_secret" {
type = string
type = string
sensitive = true
}

variable "supabase_jwt_secret" {
type = string
type = string
sensitive = true
}
38 changes: 19 additions & 19 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,31 +63,31 @@ module "dns" {
module "ecs" {
source = "./ecs"

app_name = "${local.environment}-${local.app_name}"
environment = local.environment
image = "${data.aws_ecr_repository.repository.repository_url}:${local.version}"
image_version = local.version
acm_certificate_arn = module.dns.certificate_arn
cpu = 512
fqdn = local.fqdn
memory = 1024
private_subnets = module.vpc.private_subnets
public_subnets = module.vpc.public_subnets
region = var.region
route53_zone_id = module.dns.zone_id
vpc_cidr = module.vpc.vpc_cidr_block
vpc_id = module.vpc.vpc_id
app_name = "${local.environment}-${local.app_name}"
environment = local.environment
image = "${data.aws_ecr_repository.repository.repository_url}:${local.version}"
image_version = local.version
acm_certificate_arn = module.dns.certificate_arn
cpu = 512
fqdn = local.fqdn
memory = 1024
private_subnets = module.vpc.private_subnets
public_subnets = module.vpc.public_subnets
region = var.region
route53_zone_id = module.dns.zone_id
vpc_cidr = module.vpc.vpc_cidr_block
vpc_id = module.vpc.vpc_id

// Note: Stores nonces in memory cannot be scaled!
autoscaling_max_capacity = local.environment == "prod" ? 1 : 1
autoscaling_min_capacity = local.environment == "prod" ? 1 : 1
desired_count = local.environment == "prod" ? 1 : 1

node_env = var.node_env
database_url = var.database_url
direct_url = var.direct_url
cookie_name = var.cookie_name
cookie_secret = var.cookie_secret
node_env = var.node_env
database_url = var.database_url
direct_url = var.direct_url
cookie_name = var.cookie_name
cookie_secret = var.cookie_secret
supabase_jwt_secret = var.supabase_jwt_secret
}

Expand Down
12 changes: 4 additions & 8 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ variable "node_env" {
type = string
}
variable "database_url" {
type = string
type = string
sensitive = true
}

variable "direct_url" {
type = string
type = string
sensitive = true
}

Expand All @@ -36,15 +36,11 @@ variable "cookie_name" {
}

variable "cookie_secret" {
type = string
type = string
sensitive = true
}

variable "supabase_jwt_secret" {
type = string
type = string
sensitive = true
}

variable "environment" {
type = string
}

0 comments on commit 50b5a7d

Please sign in to comment.