Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

subnet_ids expect string but is list #59

Closed
esbenp opened this issue Oct 27, 2016 · 2 comments
Closed

subnet_ids expect string but is list #59

esbenp opened this issue Oct 27, 2016 · 2 comments

Comments

@esbenp
Copy link

esbenp commented Oct 27, 2016

I get the following error when creating a web-service module.

Error configuring: 1 error(s) occurred:

* variable subnet_ids in module browser_client should be type string, got list

Go the configuration from pingdummy. Unsure if this is a Stack issue or pingdummy but I thought I would report it regardless. Changed my config to join by , which seemed to fix the issue.

subnet_ids       = "${join(",",module.stack.external_subnets)}"
@achille-roussel
Copy link
Contributor

achille-roussel commented Oct 27, 2016

This is the expected way of doing it, there hasn't been work done on porting to terraform 0.7+ to support passing lists as variables.

@nmarcetic
Copy link

@achille-roussel We need to use terraform lower then v0.7 ? I saw this https://github.com/segmentio/stack/blob/master/circle.yml#L4
I am getting a same problem as @esbenp , fixed with join

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants