Skip to content

Commit

Permalink
feat(aws_instance): add instance market options block
Browse files Browse the repository at this point in the history
  • Loading branch information
haidargit committed Feb 20, 2025
1 parent 1ccfbd0 commit 8b67bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ variable "instance_market_options" {
EOT
default = null
validation {
condition = contains(["spot", "capacity-block"], var.instance_market_options.market_type)
condition = var.instance_market_options != null ? contains(["spot", "capacity-block"], var.instance_market_options.market_type) : true
error_message = "The value of market_type must be one of the following: \"spot\" and \"capacity-block\"."
}
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ variable "instance_market_options" {
EOT
default = null
validation {
condition = contains(["spot", "capacity-block"], var.instance_market_options.market_type)
condition = var.instance_market_options != null ? contains(["spot", "capacity-block"], var.instance_market_options.market_type) : true
error_message = "The value of market_type must be one of the following: \"spot\" and \"capacity-block\"."
}
}
Expand Down

0 comments on commit 8b67bbc

Please sign in to comment.