mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-30 06:01:50 +02:00
Support for Mixed Instances ASG in worker_groups_launch_template variable (#468)
* Create ASG tags via for - utility from terraform 12 * Updated support for mixed ASG in worker_groups_launch_template variable * Updated launch_template example to include spot and mixed ASG with worker_groups_launch_template variable * Removed old config * Removed workers_launch_template_mixed.tf file, added support for mixed/spot in workers_launch_template variable * Updated examples/spot_instances/main.tf with Mixed Spot and ondemand instances * Removed launch_template_mixed from relevant files * Updated README.md file * Removed workers_launch_template.tf.bkp * Fixed case with null on_demand_allocation_strategy and Spot allocation * Fixed workers_launch_template.tf, covered spot instances via Launch Template
This commit is contained in:
committed by
Max Williams
parent
a47f464221
commit
461cf5482e
@@ -63,7 +63,6 @@ output "workers_asg_arns" {
|
||||
value = concat(
|
||||
aws_autoscaling_group.workers.*.arn,
|
||||
aws_autoscaling_group.workers_launch_template.*.arn,
|
||||
aws_autoscaling_group.workers_launch_template_mixed.*.arn,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -72,7 +71,6 @@ output "workers_asg_names" {
|
||||
value = concat(
|
||||
aws_autoscaling_group.workers.*.id,
|
||||
aws_autoscaling_group.workers_launch_template.*.id,
|
||||
aws_autoscaling_group.workers_launch_template_mixed.*.id,
|
||||
)
|
||||
}
|
||||
|
||||
@@ -125,7 +123,6 @@ output "worker_iam_role_name" {
|
||||
aws_iam_role.workers.*.name,
|
||||
data.aws_iam_instance_profile.custom_worker_group_iam_instance_profile.*.role_name,
|
||||
data.aws_iam_instance_profile.custom_worker_group_launch_template_iam_instance_profile.*.role_name,
|
||||
data.aws_iam_instance_profile.custom_worker_group_launch_template_mixed_iam_instance_profile.*.role_name,
|
||||
[""]
|
||||
)[0]
|
||||
}
|
||||
@@ -136,7 +133,6 @@ output "worker_iam_role_arn" {
|
||||
aws_iam_role.workers.*.arn,
|
||||
data.aws_iam_instance_profile.custom_worker_group_iam_instance_profile.*.role_arn,
|
||||
data.aws_iam_instance_profile.custom_worker_group_launch_template_iam_instance_profile.*.role_arn,
|
||||
data.aws_iam_instance_profile.custom_worker_group_launch_template_mixed_iam_instance_profile.*.role_arn,
|
||||
[""]
|
||||
)[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user