-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modify staging deploy * workflows update main deploy * update entities deploys * formatting terraform
- Loading branch information
Showing
10 changed files
with
30 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -11,6 +11,7 @@ module "stack" { | |
deployment_stage = "dev" | ||
services = { | ||
entities = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.entities.json, | ||
} | ||
|
@@ -56,13 +57,7 @@ module "stack" { | |
WORKERS = "2" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/czid-platformics/entities/scripts/migrate.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -11,6 +11,7 @@ module "stack" { | |
deployment_stage = "prod" | ||
services = { | ||
entities = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.entities.json, | ||
} | ||
|
@@ -55,13 +56,7 @@ module "stack" { | |
WORKERS = "2" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/czid-platformics/entities/scripts/migrate.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -11,6 +11,7 @@ module "stack" { | |
deployment_stage = "sandbox" | ||
services = { | ||
entities = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.entities.json, | ||
} | ||
|
@@ -56,13 +57,7 @@ module "stack" { | |
WORKERS = "2" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/czid-platformics/entities/scripts/migrate.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -10,6 +10,7 @@ module "stack" { | |
app_name = var.app | ||
deployment_stage = "staging" | ||
services = { | ||
cache_volume_mount_dir = "/var/policies" | ||
entities = { | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.entities.json, | ||
|
@@ -56,13 +57,7 @@ module "stack" { | |
WORKERS = "2" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/czid-platformics/entities/scripts/migrate.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -11,11 +11,13 @@ module "stack" { | |
deployment_stage = "prod" | ||
services = { | ||
workflows = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.workflows.json, | ||
} | ||
name = "workflows" | ||
health_check_path = "/graphql" | ||
period_seconds = 10 | ||
platform_architecture = "arm64" | ||
port = 8042 | ||
cpu = "8" | ||
|
@@ -47,14 +49,16 @@ module "stack" { | |
}, | ||
|
||
workflows-worker = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.workflows.json, | ||
} | ||
health_check_command = ["true"] # Placeholder - we probably want a healthcheck that does something real. | ||
cpu = "4" | ||
memory = "4000Mi" | ||
name = "workflows-worker" | ||
platform_architecture = "arm64" | ||
service_type = "PRIVATE" | ||
service_type = "CLI" | ||
cmd = ["python3", "api/loader/run_loader.py"] | ||
port = 8000 | ||
init_containers = { | ||
|
@@ -88,13 +92,7 @@ module "stack" { | |
SERVICE_NAME = "workflows" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/workflows/scripts/migrate.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Auto-generated by 'happy infra'. Do not edit | ||
# Make improvements in happy, so that everyone can benefit. | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=rlim/ephemeral-volume-support" | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
image_tag = var.image_tag | ||
stack_name = var.stack_name | ||
k8s_namespace = var.k8s_namespace | ||
|
@@ -11,6 +11,7 @@ module "stack" { | |
deployment_stage = "staging" | ||
services = { | ||
workflows = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.workflows.json, | ||
} | ||
|
@@ -48,16 +49,17 @@ module "stack" { | |
}, | ||
|
||
workflows-worker = { | ||
cache_volume_mount_dir = "/var/policies" | ||
aws_iam = { | ||
policy_json = data.aws_iam_policy_document.workflows.json, | ||
} | ||
health_check_command = ["true"] # Placeholder - we probably want a healthcheck that does something real. | ||
cpu = "2" | ||
memory = "1000Mi" | ||
name = "workflows-worker" | ||
platform_architecture = "arm64" | ||
service_type = "PRIVATE" | ||
service_type = "CLI" | ||
cmd = ["python3", "api/loader/run_loader.py"] | ||
port = 8000 | ||
init_containers = { | ||
private-key = { | ||
cmd = ["python3", "/workflows/platformics/scripts/make_private_key_pem.py", "staging"] | ||
|
@@ -89,13 +91,7 @@ module "stack" { | |
SERVICE_NAME = "workflows" | ||
} | ||
create_dashboard = false | ||
emptydir_volumes = [{ | ||
name = "policies" | ||
parameters = { | ||
size_limit = "100Mi" | ||
} | ||
}] | ||
routing_method = "CONTEXT" | ||
routing_method = "CONTEXT" | ||
tasks = { | ||
migrate = { | ||
cmd = ["/workflows/scripts/migrate.sh"] | ||
|