Closed marcinwyszynski closed 3 years ago
Hi Marcin,
I checked the issue you have with your module and here are the missing bits:
create_lt = true
and use_lt = true
in asg.tf
.tags
contains an unknown value (coming from random_pet
), so the length of tags
changes as Terraform progressing the creation of the resources. It is weird, I know.tags_as_map
argument of this module and pass as key/value instead of lists of dynamic length:
module "asg" {
# omitted...
tags_as_map = merge(var.tags_as_map, { WorkerPoolID = var.worker_pool_id })
}
variable "tags_as_map" { type = map(string) default = {} }
This way module will make sure that tags are processed at the beginning and length will not change.
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
I'm authoring a module that uses this module. I want to support configuring the HTTP metadata endpoint, which requires bumping the major to "4", and even with a clean install this seems broken with the recent AWS provider:
Versions
Reproduction
The full repro code can be found here. Since the is another module, the Terraform entry point (test case) is specified here.
Steps to reproduce the behavior:
Are you using workspaces?: no Have you cleared the local cache (see Notice section above)?: yes List steps in order that led up to the issue you encountered:
terraform plan -out plan.bin
terraform apply -auto-approve plan.bin
Expected behavior
The module applies cleanly.
Actual behavior
The module does not apply cleanly.
Terminal Output Screenshot(s)