Closed rysi3k closed 1 year ago
the easiest option is - don't wrap modules in modules (and don't use workspaces for environmental isolation)
Yeah, this is option, but I have many common options in each environment, in some cases, the only difference is spot/non-spot and name, but a bunch of options are the same. So I think it is not a good solution.
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
this is not related to the module but related to how you are trying to mange terraform
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
In the current version of module
"~> 6.5.1"
it is not possible to use spot instances conditionally (or I do not know how to do this ;))Versions
Module version [Required]:
Terraform version: Terraform v1.2.7
Provider version(s): provider registry.terraform.io/hashicorp/aws v4.34.0
Reproduction Code [Required]
Above example cause error:
Another try with:
Throws error
Expected behavior
Possible to make condition in instance_market_options.