• g

    green-musician-49057

    5 months ago
    Will support for Dynamic Providers be released for Golang?
    g
    b
    2 replies
    Copy to Clipboard
  • q

    quaint-hair-91883

    5 months ago
    How do I get the actual
    string
    value out of
    pulumi.StringOutput
    or
    pulumi,StringPtrOutput
    ?
    q
    1 replies
    Copy to Clipboard
  • q

    quaint-hair-91883

    5 months ago
    I am creating a Kubernetes namespace and then I want to create a service account in that namespace.
    q
    q
    2 replies
    Copy to Clipboard
  • a

    astonishing-gpu-28317

    5 months ago
    i’m trying to get a value out of the config, get it’s concrete string value using ApplyT, and then use that string value in a text template. i then return that template string in the ApplyT function, and I’d like to use the file contents in a resource
    a
    b
    6 replies
    Copy to Clipboard
  • b

    brave-lizard-56518

    5 months ago
    I used the (*pulumi.Context).Export() function to export a pulumi.StringArray of subnet IDs, and a few other metadata. At the bottom is an excerpt of my stack output as stored in my state file, which I’m already able to load using pulumi.NewStackReference(), and read a plain string like the “eip-1”, for example. My code for reading the eip-1 (which works) is:
    nsr, _ := pulumi.NewStackReference(ctx, vpcStackRef, nil)
    eip1 := nsr.GetStringOutput(pulumi.String("eip-1"))
    Now what I can’t figure out is how to read “data-subnets” into a slice. Can anybody help?
    "resources": [
                    {
                        "urn": "urn:pulumi:dev::vpc::pulumi:pulumi:Stack::dev",
                        "custom": false,
                        "type": "pulumi:pulumi:Stack",
                        "outputs": {
                            "data-subnets": [
                                "subnet-abcddaed530b25d91",
                                "subnet-abcdcfacd0c04fe74",
                                "subnet-abcd693e4a8ae4ca8"
                            ],
                            "eip-1": "eipalloc-abcdcfa5cf063576d"
    b
    e
    2 replies
    Copy to Clipboard
  • b

    bulky-agent-73210

    5 months ago
    Hi all, can you point me towards and example on how to create a custom resource in Golang SDK? I want to generate PGP keys. I tried some things with ComponentResource, but the output generation code runs on every
    pulumi up
    , and the output changes. So I assume I’m using the wrong approach here.
    b
    e
    4 replies
    Copy to Clipboard
  • n

    nice-airline-86891

    5 months ago
    are there any examples for alternatives to a huge main func? for creating a bunch of resources? vpc + eks type things?
    n
    b
    5 replies
    Copy to Clipboard
  • s

    salmon-account-74572

    4 months ago
    This may be due to an error on my part, but I was just running into a problem running
    pulumi preview
    against one of my stacks (I’ll post the full error output in the thread). This is with Pulumi 3.29.1 on macOS running Go 1.18.1. The fix ended up being upgrading
    <http://golang.org/x/sys|golang.org/x/sys>
    (via
    go get -u <http://golang.org/x/sys|golang.org/x/sys>
    ), and then
    pulumi preview
    seemed to work just fine. Posting here in case someone else runs into a similar problem.
    s
    2 replies
    Copy to Clipboard
  • c

    clean-truck-93285

    4 months ago
    Howdy Team, when unit testing. How do you test functions that have parameters? I getting type errors when trying to run tests against my functions. For example, my SQL server function needs information about a vnet, so I pass in a vnet object. When I get to testing, I don't have a vnet object available.
    c
    1 replies
    Copy to Clipboard
  • b

    busy-island-31180

    4 months ago
    how do you convert a
    *string
    to a
    pulumi.StringPtrInput
    ?
    b
    1 replies
    Copy to Clipboard