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

Cant pass null to var.tags #6

Open
drewmullen opened this issue Jan 19, 2022 · 0 comments
Open

Cant pass null to var.tags #6

drewmullen opened this issue Jan 19, 2022 · 0 comments

Comments

@drewmullen
Copy link
Contributor

╷
│ Error: Error in function call
│ 
│   on .terraform/modules/tags/locals.tf line 23, in locals:
│   23:   tags = try(
│   24:     # Tags are already in awscc format
│   25:     concat(local.generated_tags_awscc, var.tags),
│   26:     # Tags are in aws format. Convert to awscc format
│   27:     concat(local.generated_tags_awscc, [for k, v in var.tags : { key : k, value : v }])
│   28:   )
│     ├────────────────
│     │ local.generated_tags_awscc is tuple with 2 elements
│     │ var.tags is null
│ 
│ Call to function "try" failed: no expression succeeded:
│ - Invalid function argument (at .terraform/modules/tags/locals.tf:25,40-48)
│   Invalid value for "seqs" parameter: argument must not be null.
│ - Iteration over null value (at .terraform/modules/tags/locals.tf:27,53-61)
│   A null value cannot be used as the collection in a 'for' expression.
│ 
│ At least one expression must produce a successful result.
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