updated terraform

This commit is contained in:
Bryce
2023-05-22 23:29:04 -07:00
parent c78b3719c1
commit bb7ce74224
4 changed files with 699 additions and 548 deletions

View File

@@ -16,8 +16,8 @@ resource "aws_ecs_task_definition" "integreat_app" {
family = "integreat_app_${var.stage}"
container_definitions = file("${var.stage}-taskdef.json")
memory = 8192
cpu = 2048
memory = 16384
cpu = 4096
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
execution_role_arn = var.execution_role_arn
@@ -40,7 +40,7 @@ resource "aws_ecs_service" "integreat_app" {
network_configuration {
assign_public_ip = true
security_groups = [ "sg-004e5855310c453a3", "sg-02d167406b1082698"]
subnets = [ "subnet-5e675761", "subnet-8519fde2", "subnet-89bab8d4" ]
subnets = [ "subnet-5e675761", "subnet-8519fde2", "subnet-89bab8d4", "subnet-16161a39", "subnet-323deb78","subnet-44c2774b"]
}
load_balancer {
@@ -257,7 +257,6 @@ resource "aws_service_discovery_service" "service" {
}
}
/*
module "square_import_job" {
source = "./background-job/"
ecs_cluster = var.ecs_cluster
@@ -355,18 +354,6 @@ module "vendor_usages_job" {
}
module "ezcater_upsert_job" {
source = "./background-job/"
ecs_cluster = var.ecs_cluster
task_role_arn = var.task_role_arn
stage = var.stage
schedule = "rate(8 hours)"
job_name = "ezcater-upsert"
execution_role_arn = var.execution_role_arn
memory = 2048
cpu = 1024
}
module "import_uploaded_invoices_job" {
source = "./background-job/"
@@ -453,18 +440,6 @@ module "load_historical_sales_job" {
cpu = 1024
}
module "restore_from_backup_job" {
source = "./background-job/"
ecs_cluster = var.ecs_cluster
task_role_arn = var.task_role_arn
stage = var.stage
job_name = "restore-from-backup"
execution_role_arn = var.execution_role_arn
use_schedule = false
memory = 8192
cpu = 4096
}
module "ntg_job" {
schedule = "rate(6 hours)"
source = "./background-job/"
@@ -477,4 +452,3 @@ module "ntg_job" {
memory = 4096
cpu = 1024
}
*/