My terraform module does not read a remote state data source if I use interpolation.
This works:
security_group_ids = [data.terraform_remote_state.sg.outputs.sg_paris_id]
And when I run terragrunt apply it lists the SG ID but it makes the module pointless as I have to make a module for each VPCE I want to create
This does not work:
security_group_ids = ["data.terraform_remote_state.sg.outputs.sg_${local.city}_id"]
Terragrunt prints "data.terraform_remote_state.sg.outputs.sg_${local.city}_id" in the new plan and returns an error saying it expects 'sg- something' when I apply.
I think it's because security_group_ids is expecting a set not a string, but 'toset' doesn't have any impact.
I'm using TF 0.12.28 and TG 0.23.24