g

    gentle-market-22852

    1 month ago
    following the readme instruction with the sample .tf in it..with 3 files located in folder abc
    G:\DWork\osource\cloudc\devops\pulumi\tf\abc>tf2pulumi
    panic: fatal: An assertion has failed
    goroutine 1 [running]:
    <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
    /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.19.0/go/common/util/contract/failfast.go:23
    <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assert(...)>
    /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.19.0/go/common/util/contract/assert.go:26
    <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.parseFile(0xc0005695a0|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.parseFile(0xc0005695a0>, 0x2212a98, 0xc000767960, 0xc00069d0a0, 0x8, 0x0, 0x0)
    /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.18.1/pkg/tf2pulumi/convert/tf12.go:35 +0x2d1
    <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.parseTF12(0x10000|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.parseTF12(0x10000>, 0x0, 0x0, 0x2212a98, 0xc000767960, 0x0, 0x0, 0x0, 0x21e1ba0, 0x2a94600, ...)
    /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.18.1/pkg/tf2pulumi/convert/tf12.go:66 +0x22f
    <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.Convert(0x10000|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tf2pulumi/convert.Convert(0x10000>, 0x0, 0x0, 0x2212a98, 0xc000767960, 0x0, 0x0, 0x0, 0x21e1ba0, 0x2a94600, ...)
    /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.18.1/pkg/tf2pulumi/convert/convert.go:97 +0x138
    main.main.func1(0xc0002e42c0, 0x2a94b70, 0x0, 0x0, 0x0, 0x0)
    /home/runner/work/tf2pulumi/tf2pulumi/main.go:52 +0x125
    <http://github.com/spf13/cobra.(*Command).execute(0xc0002e42c0|github.com/spf13/cobra.(*Command).execute(0xc0002e42c0>, 0xc00018e0f0, 0x0, 0x0, 0xc0002e42c0, 0xc00018e0f0)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 +0x472
    <http://github.com/spf13/cobra.(*Command).ExecuteC(0xc0002e42c0|github.com/spf13/cobra.(*Command).ExecuteC(0xc0002e42c0>, 0xc000569f50, 0x1, 0x1)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x375
    <http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
    main.main()
    /home/runner/work/tf2pulumi/tf2pulumi/main.go:117 +0x59a
    any clues why this error when running tf converter..
    this error is seen, once this command is executed
    tf2pulumi --target-language java
    output of this command is
    C:\temp\tf2pulumi\tests\terraform\aws\eip>tf2pulumi --target-language java
    ←[33mWarning←[0m: default provider configuration is not supported
    on <http://main.tf|main.tf> line 1:
    (source code not available)
    i.e. any of the targe with any langauge option same issue
    b

    billowy-army-68599

    1 month ago
    please file an issue for this. tf2pulumi only supports hcl < 0.12