Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ resource "aws_ecs_task_definition" "ecs_task_definition" {
ipc_mode = var.ipc_mode
network_mode = var.network_mode
pid_mode = var.pid_mode
runtime_platform {
operating_system_family = var.runtime_platform.operating_system_family
cpu_architecture = var.runtime_platform.cpu_architecture
}

# Fargate requires cpu and memory to be defined at the task level
cpu = var.cpu
Expand Down
9 changes: 9 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@ variable "resourceRequirements" {
type = list(string)
}

variable "runtime_platform" {
default = {}
description = "Runtime platform (operating system family and CPU architecture) to use by the task"
type = object({
operating_system_family = optional(string, "LINUX")
cpu_architecture = optional(string, "X86_64")
})
}

variable "secrets" {
default = []
description = "The secrets to pass to the container"
Expand Down