Skip to content

Commit

Permalink
tf fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelezovartem committed Aug 11, 2022
1 parent 4805424 commit f7c083f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion deployment/terraform/244531986313-eu-central-1.tfvars
@@ -1,4 +1,4 @@
env = "staging"
env = "staging"

# Allow to replicate app docker images to these accounts
ecr_replication_targets = [
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform/274425519734-eu-central-1.tfvars
@@ -1,4 +1,4 @@
env = "prod"
env = "prod"

# Allow to replicate app docker images from this account
ecr_replication_origin = "244531986313"
26 changes: 13 additions & 13 deletions deployment/terraform/deployment.tf
@@ -1,21 +1,21 @@
module "ecs-service" {
source = "s3::https://s3-eu-central-1.amazonaws.com/terraform-modules-9d7e951c290ec5bbe6506e0ddb064808764bc636/terraform-modules.zip//ecs-service/v1"
service_name = var.service_name
TAGGED_IMAGE = var.TAGGED_IMAGE
enable_execute_command = "true"
app_port = var.app_port
cpu_limit = var.cpu_limit
mem_reservation = var.mem_reservation
mem_limit = var.mem_limit
app_env_vars = local.app_env_vars
source = "s3::https://s3-eu-central-1.amazonaws.com/terraform-modules-9d7e951c290ec5bbe6506e0ddb064808764bc636/terraform-modules.zip//ecs-service/v1"
service_name = var.service_name
TAGGED_IMAGE = var.TAGGED_IMAGE
enable_execute_command = "true"
app_port = var.app_port
cpu_limit = var.cpu_limit
mem_reservation = var.mem_reservation
mem_limit = var.mem_limit
app_env_vars = local.app_env_vars
ecr_replication_targets = var.ecr_replication_targets
ecr_replication_origin = var.ecr_replication_origin
ecr_replication_origin = var.ecr_replication_origin
volumes = [
{
name = "docker_socket"
name = "docker_socket"
containerPath = "/var/run/docker.sock"
host_path = "/var/run/docker.sock"
host_path = "/var/run/docker.sock"
}
]
tags = module.tags.result
tags = module.tags.result
}
10 changes: 5 additions & 5 deletions deployment/terraform/variables.tf
@@ -1,5 +1,5 @@
variable "service_name" {
type = string
type = string
default = "repler"
}

Expand All @@ -8,22 +8,22 @@ variable "env" {
}

variable "app_port" {
type = number
type = number
default = 4657
}

variable "cpu_limit" {
type = number
type = number
default = 20
}

variable "mem_limit" {
type = number
type = number
default = 64
}

variable "mem_reservation" {
type = number
type = number
default = 32
}

Expand Down

0 comments on commit f7c083f

Please sign in to comment.