• 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..
    g
    3 replies
    Copy to Clipboard
  • a

    abundant-megabyte-13431

    1 month ago
    Hi, i want to know if tf2pulumi can convert hcl to go language, i just see https://www.pulumi.com/docs/guides/adopting/from_terraform/ that tf2pulumi generate a Pulumi TypeScript program, it doesn't matter what language your project created
    a
    e
    7 replies
    Copy to Clipboard
  • a

    ambitious-agent-35343

    1 month ago
    Do people keep their infrastructure as code with their application or in a separate infrastructure repo?
    a
    v
    +2
    5 replies
    Copy to Clipboard
  • v

    victorious-dusk-75271

    1 month ago
    v
    e
    2 replies
    Copy to Clipboard
  • g

    gentle-market-22852

    1 month ago
    Pulumi Crosswalk for Kubernetes are there any good examples for the same.. I am hoping these examples would be different than the examples related to Pulumi Pulumi at https://www.pulumi.com/docs/get-started/kubernetes/review-project/
  • l

    lively-crayon-44649

    1 month ago
    Hey all; I'm wondering if anyone has any patterns/tips when it comes to sharing and hydrating resources across stack boundaries/using stack references. Currently, I'm thinking that a good idea might be to adopt a pattern where my ComponentResources look something like this:
    class MyResource extends pulumi.ComponentResource {
      static create(name, args, opts): MyResource {
        const foo = new aws.Foo(...)
        const bar = new aws.Bar(...)
    
        return new this(foo, bar)
      }
    
      static fromExisting(fooId, barId) {
        const foo = aws.Foo.getFoo(fooId)
        const bar = aws.Bar.getBar(barId)
    
        return new this(foo, bar)
      }
    
      private constructor(foo, bar) {
        this.foo = foo
        this.bar = bar
      }
    
      toOutputs() {
        return {
          fooId: this.foo.id,
          barId: this.bar.id,
        }
      }
    }
    l
    s
    2 replies
    Copy to Clipboard
  • g

    gentle-market-22852

    1 month ago
    package com.tejasoft.devops.iac.pulumi.aws;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.eks.Cluster;
    
    public final class AWSEKSPulumiApp
    {
        public static void main(final String[] aArgs) {
           Pulumi.run(AWSEKSPulumiApp::stack);
        }
    
        private static void stack(final Context aContext) {
           final var cluster = new Cluster("eks-cluster");
           aContext.export("kubeconfig", cluster.kubeconfig());
        }
    }
    when this is executed the command
    pulumi stack output
    gives out put as
    Current stack outputs (0):
    No output values currently in this stack
    g
    e
    7 replies
    Copy to Clipboard
  • s

    steep-toddler-94095

    1 month ago
    anyone else get this error before?
    $ pulumi plugin install resource eks
    error: 401 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-eks/releases/latest>
    This is happening in a self-hosted Github Actions runner. The reason I'm installing it manually is because I'm running into the dreaded plugin bugs. Related Issues:https://github.com/pulumi/pulumi/issues/5619 https://github.com/pulumi/pulumi/issues/5725
    s
    b
    4 replies
    Copy to Clipboard
  • p

    prehistoric-book-85014

    1 month ago
    Good afternoon guys, how are you? How can I get all values ​​from export using python? Its possible ?
    p
    1 replies
    Copy to Clipboard