Scheduling a Fargate Windows-based task definition with Terraform
In Chapter 5, Deploying an EC2 Windows-Based Task, in the Scheduling an EC2 Windows-based task with Terraform section, we created an EC2-based task definition, ECS service, an Auto Scaling group, and an application load balancer (ALB) to handle the traffic.
In this chapter, we will see how easy it is to accomplish the same results using Fargate Windows-based tasks. Some configurations were removed or changed compared to the Terraform code shown in Chapter 5, as we don’t rely on managing EC2 instances or Auto Scaling groups. It is simpler!
Important note
You will see code snippets for the remainder of this section. The full Terraform code for this chapter can be found at https://github.com/PacktPublishing/Running-Windows-Containers-on-AWS/tree/main/ecs-fargate-windows.
Deploying a Fargate Windows-based task definition
In this first step, we will create the Fargate Windows-based task definition, which...