Defines an ECS Fargate task with specific runtime platform settings for Windows Server 2019 Core.

Terraform Template

resource "aws_ecs_task_definition" "test" {
  container_definitions = <<-EOF
    [
     {
     "name": "iis",
     "image": "mcr.microsoft.com/windows/servercore/iis",
     "cpu": 1024,
     "memory": 2048,
     "essential": true
     }
    ]
    
  EOF
  cpu = 1024
  family = "test"
  memory = 2048
  network_mode = "awsvpc"
  requires_compatibilities = ["FARGATE"]

  runtime_platform {
    cpu_architecture = "X86_64"
    operating_system_family = "WINDOWS_SERVER_2019_CORE"
  }
}