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

Errors using terraform v0.15.0 (deprecation removals) #115

Closed
andrmoel opened this issue Apr 22, 2021 · 2 comments · Fixed by #118
Closed

Errors using terraform v0.15.0 (deprecation removals) #115

andrmoel opened this issue Apr 22, 2021 · 2 comments · Fixed by #118
Labels
bug Something isn't working feature/terraform Missing feature from Terraform
Milestone

Comments

@andrmoel
Copy link

Using terraform version 0.15.0 is causing several errors

│ Error: Error in function call
│ 
│   on .terraform/modules/tf_next.proxy.edge_proxy/iam.tf line 25, in data "aws_iam_policy_document" "assume_role":
│   25:       identifiers = distinct(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/tf_next.proxy.edge_proxy/outputs.tf line 98, in output "s3_object":
│   98:   value       = map("bucket", local.s3_bucket, "key", local.s3_key, "version_id", local.s3_object_version)
│     ├────────────────
│     │ local.s3_bucket is a string, known only after apply
│     │ local.s3_key will be known only after apply
│     │ local.s3_object_version will be known only after apply
│ 
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.

@ofhouse ofhouse added the feature/terraform Missing feature from Terraform label Apr 22, 2021
@ofhouse
Copy link
Member

ofhouse commented Apr 22, 2021

Ah, haven't switched to 0.15 yet, will push out a fix for this later today.
Thanks for reporting 👍

@ofhouse
Copy link
Member

ofhouse commented Apr 27, 2021

This took a day longer because we also had to release a new version of the the image optimizer module.

Compatibility issues with Terraform 0.15 are now fixed with the v0.8.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature/terraform Missing feature from Terraform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants