We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8dbc28 commit 42ebd59Copy full SHA for 42ebd59
deployment/terraform/modules/deployment/eks.tf
@@ -31,10 +31,6 @@ resource "aws_launch_template" "this" {
31
/etc/eks/bootstrap.sh ${var.eks_cluster_name}
32
USERDATA
33
)
34
-
35
- instance_market_options {
36
- market_type = "spot"
37
- }
38
}
39
40
resource "aws_eks_node_group" "this" {
@@ -58,6 +54,8 @@ resource "aws_eks_node_group" "this" {
58
54
ignore_changes = [scaling_config[0].desired_size]
59
55
60
56
57
+ capacity_type = "SPOT"
+
61
depends_on = [
62
aws_iam_service_linked_role.AWSServiceRoleForAmazonEKSNodegroup,
63
aws_iam_role_policy_attachment.eks_worker_node_policy,
0 commit comments