Skip to content

Unable to import module in project with Terraform 0.13.4 #10

@wgebis

Description

@wgebis

Describe the bug
Unable to import module in project with Terraform 13.4 due to:

Error: Invalid reference from destroy provisioner

  on .terraform/modules/linkerd/crds.tf line 17, in resource "null_resource" "crds":
  17:     command = "kubectl delete -f - <<EOF\n${data.template_file.crds.rendered}\nEOF"

Also two warning about deprecation also are there:

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/linkerd/controller.tf line 216, in resource "kubernetes_deployment" "linkerd_controller":
 216:             "${local.linkerd_deployment_incoming_proxy_port}",

(and 38 more similar warnings elsewhere)

....

Warning: Quoted keywords are deprecated

  on .terraform/modules/linkerd/crds.tf line 16, in resource "null_resource" "crds":
  16:     when = "destroy"

To Reproduce

  1. Put module in tf file
module "linkerd" {
  source = "git::ssh://git@github.com/rtlnl/terraform-aws-linkerd2.git?ref=main"
}
  1. Import it
terraform init

Expected behavior
Possibility to import module on Terraform >=0.13.4

Desktop (please complete the following information):

  • OS: macos
  • Terraform: 0.13.4

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