Skip to content

Feature | Support terraform 0.15  #5

@exequielrafaela

Description

@exequielrafaela

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions