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

Feature | Support terraform 0.15 #5

Open
exequielrafaela opened this issue May 5, 2021 · 0 comments
Open

Feature | Support terraform 0.15 #5

exequielrafaela opened this issue May 5, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@exequielrafaela
Copy link
Member

What?

Module execution failing when running on terraform 0.15
There’s two issues

  1. First one is not being able to use the aws provider v3
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws: locked provider registry.terraform.io/hashicorp/aws 3.31.0 does not match configured version constraint ~> 2.70; must use
│ terraform init -upgrade to allow selection of new versions
╵
  1. When running terraform plan getting an tf 0.12 code incompatibility issue
╷
│ Error: Error in function call
│
│   on .terraform/modules/deployment_bramble.certbot_lambda.certbot_lambda_jenkins/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/deployment_bramble.certbot_lambda.certbot_lambda_jenkins/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.
╵
╷
│ Error: Error in function call
│
│   on .terraform/modules/deployment_bramble.certbot_lambda/locals.tf line 2, in locals:
│    2:   tags = merge(var.tags, map("Application", "certbot-lambda"))
│
│ 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.
╵

Why?

  • Being able to use the module with terraform 0.15
@exequielrafaela exequielrafaela added the bug Something isn't working label May 5, 2021
@exequielrafaela exequielrafaela added this to the 2021 Q2 milestone May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants