Skip to content

Commit

Permalink
feat(terraform): migrate to ARM64 architecture (#97)
Browse files Browse the repository at this point in the history
* feat(terraform): migrate to ARM64 architecture

* docs: update Terraform docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
JoshuaLicense and github-actions[bot] authored May 1, 2024
1 parent b668e11 commit cce23c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions infra/terraform/modules/service/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module "ecs_cluster" {

cluster_settings = [
{
"name" : "containerInsights",
"value" : "enabled"
name = "containerInsights"
value = "enabled"
}
]
}
Expand All @@ -25,11 +25,18 @@ module "ecs_service" {
name = "vol-app-${var.environment}-${each.key}-service"
cluster_arn = module.ecs_cluster[each.key].arn

enable_execute_command = true

task_exec_iam_role_arn = module.ecs_cluster[each.key].task_exec_iam_role_arn

cpu = var.services[each.key].cpu
memory = var.services[each.key].memory

runtime_platform = {
operating_system_family = "LINUX",
cpu_architecture = "ARM64"
}

container_definitions = {
(each.key) = {
cpu = try(var.services[each.key].task_cpu_limit, var.services[each.key].cpu / 2)
Expand Down

0 comments on commit cce23c3

Please sign in to comment.