Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform plan throws error "concat: argument 1 should be type list, got type string" #3

Open
oveits opened this issue Sep 24, 2016 · 1 comment

Comments

@oveits
Copy link
Contributor

oveits commented Sep 24, 2016

With terraform 0.7.4, the line

Name = "${concat("node", count.index)}"

in ec2/main.tf is causing the following error message:

$ terraform plan
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

  * At column 3, line 1: concat: argument 1 should be type list, got type string in:

${concat("node", count.index)}
  * At column 3, line 1: concat: argument 1 should be type list, got type string in:

${concat("node", count.index)}

I have found following closed terraform issue #6792 that is telling us that concat is not supported for strings anymore.

How about changing the line to

Name = "node${count.index}"

?
This yields Names like

    tags.Name:                                 "node0"

and

    tags.Name:                                 "node1"

when running terraform plan.

@oveits
Copy link
Contributor Author

oveits commented Oct 14, 2016

This issue is now followed up on issue #4 with the corresponding pull request. Therefore, I close this as a duplicate.

@oveits oveits closed this as completed Oct 14, 2016
@oveits oveits reopened this Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant