File tree Expand file tree Collapse file tree
examples/multi-instance-type Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,15 +181,6 @@ data "aws_iam_policy_document" "iam-policy" {
181181 }
182182}
183183
184- # ###############################################################################
185- # EC2 AutoScaling module call with more than one instance type
186- #
187- # `mixed_instances_policy_enabled = true` switches the AutoScaling Group from the
188- # default single `launch_template { instance_type = ... }` block to a
189- # `mixed_instances_policy`, whose `override` entries list several instance types
190- # the group is allowed to launch from. `instances_distribution` controls how AWS
191- # splits capacity between On-Demand and Spot across those instance types.
192- # ###############################################################################
193184
194185module "ec2-autoscale" {
195186 source = " ../../"
@@ -203,8 +194,7 @@ module "ec2-autoscale" {
203194 instance_profile_enabled = true
204195 iam_instance_profile_name = module. iam-role . name
205196 user_data_base64 = " "
206- # `instance_type` still defines the launch template used by the group; the actual
207- # instance types launched are taken from `mixed_instances_overrides` below.
197+
208198 instance_type = " t3.micro"
209199
210200 # on_demand
You can’t perform that action at this time.
0 commit comments