Skip to content

import no longer supported with Terraform 0.12.x as of v1.29.0 #83

@blbradley

Description

@blbradley

on Terraform 0.12.16 and 0.12.29 with v1.31.0

✗ terraform import "module.lambda.aws_lambda_function.this[0]" my-function
module.lambda.aws_lambda_function.this[0]: Importing from ID "my-function"...
module.lambda.aws_lambda_function.this[0]: Import prepared!
  Prepared aws_lambda_function for import
module.lambda.aws_lambda_function.this[0]: Refreshing state... [id=my-function]

Error: Error in function call

  on .terraform/modules/lambda/iam.tf line 9, in locals:
   9:   role_name = local.create_role ? coalesce(var.role_name, var.function_name) : null
    |----------------
    | var.function_name is ""
    | var.role_name is null

Call to function "coalesce" failed: no non-null, non-empty-string arguments.

Cleared by switching to v1.28.0, which does not have the line with the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions