Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Conversation

@pdecat
Copy link
Member

@pdecat pdecat commented Apr 13, 2021

Without this change, using this module with terraform 0.15-rc2 fails with the following error:

╷
│ Error: Error in function call
│
│   on .terraform/modules/mymodule.lambda-1/iam.tf line 10, in data "aws_iam_policy_document" "assume_role":
│   10:       identifiers = concat(slice(list("lambda.amazonaws.com", "edgelambda.amazonaws.com"), 0, var.lambda_at_edge ? 2 : 1), var.trusted_entities)
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to write a literal list.
╵
╷
│ Error: Error in function call
│
│   on .terraform/modules/mymodule.lambda-1/iam.tf line 26, in locals:
│   26:   log_group_arns            = slice(list(local.lambda_log_group_arn, local.lambda_edge_log_group_arn), 0, var.lambda_at_edge ? 2 : 1)
│     ├────────────────
│     │ local.lambda_edge_log_group_arn is a string, known only after apply
│     │ local.lambda_log_group_arn is a string, known only after apply
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to write a literal list.
╵

@pdecat pdecat requested review from Shr3ps and xp-1000 April 13, 2021 07:09
@pdecat pdecat merged commit 729218f into master Apr 26, 2021
@pdecat pdecat deleted the tf0.15 branch April 26, 2021 13:29
@pdecat
Copy link
Member Author

pdecat commented Apr 26, 2021

Released as v1.3.0.

mbklein pushed a commit to nulib/terraform-aws-lambda that referenced this pull request Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants