Deploying a Windows container instance with Terraform
In Chapter 3, Amazon ECS – Overview, in the Deploying an Amazon ECS cluster with Terraform section, we covered and deployed the IAM role essentials and policies to deploy an ECS cluster and Windows container instances successfully.
In this chapter, we will first deploy the Windows container instance requirements, such as security groups and a launch template, then we’ll deploy the Windows container instance via the Auto Scaling group.
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-ec2-windows.
Deploying security groups
The security group to be created will have the following rules:
Name |
Source |
Protocol |
Port ... |