Configuring EC2 security groups
You have almost completed the required configuration to be able to deploy your ECS cluster and EC2 Auto Scaling group, however one final resource we need to create is the ApplicationAutoscalingSecurityGroup
resource, which you referenced earlier in the ApplicationAutoscalingLaunchConfiguration
resource configuration:
Parameters: ApplicationDesiredCount: Type: Number Description: Desired EC2 instance count ApplicationImageId: Type: String Description: ECS Amazon Machine Image (AMI) ID ApplicationSubnets: Type: List<AWS::EC2::Subnet::Id> Description: Target subnets for EC2 instances VpcId: Type: AWS::EC2::VPC::Id Description: Target VPC Resources: ApplicationAutoscalingSecurityGroup: Type: AWS::EC2::SecurityGroup Properties: GroupDescription: !Sub ${AWS::StackName} Application Autoscaling Security Group VpcId: !Ref VpcId SecurityGroupIngress: - IpProtocol: tcp FromPort: 22...