Closed smkjason closed 1 year ago
SGTM, do you want to send a PR?
Yea sure, I'll create some PRs sometime soon.
The tailscale image does not support X86 architecture. The default may be different for different AWS regions but in my case, it spins up the X86 architecture machine and causes the image to fail during execution. ARM64 arch is known to be more cost-efficient as well.
We can add the following block under
ecs_task_definition
to avoid this.resource "aws_ecs_task_definition" "tailscale" { family = "${var.vpc}-tailscale" requires_compatibilities = ["FARGATE"] network_mode = "awsvpc" cpu = "256" # 0.25 vCPU (256/1024) ... runtime_platform { operating_system_family = "LINUX" cpu_architecture = "ARM64" } }
When you say the image does not support X86, do you mean that the image you have pushed to your ECR is an ARM64 image? The one on docker hub does seem to support a number of different architectures.
The tailscale image does not support X86 architecture. The default may be different for different AWS regions but in my case, it spins up the X86 architecture machine and causes the image to fail during execution. ARM64 arch is known to be more cost-efficient as well.
We can add the following block under
ecs_task_definition
to avoid this.