https://pulumi.com logo
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • f

    full-artist-27215

    12/01/2021, 7:20 PM
    Are there any patterns for creating Pulumi resource names based on output values? I suspect the answer is "No; don't do that"... we've got a project that we'd like to drive with stack outputs from another project, but aren't really able to create resources in the second stack that have meaningful names, since that information is technically an output from the stack reference. For now, we're just auto-generating resource names (e.g.
    resource-{i}
    , where
    i
    is just a counter), but I was curious if others had any guidance to provide here. Thanks!
    l
    r
    • 3
    • 21
  • m

    most-lighter-95902

    12/02/2021, 12:58 AM
    I was told that I can do
    new StackReference
    as many times I need, but when I put it in a function and it gets called twice, I get
    resource 'urn:pulumi:app-staging::ckc-test::pulumi:pulumi:StackReference::seunggs/ckc-test/app-build' registered twice (read and read)
    error and
    pulumi up
    fails during preview. What am I doing wrong?
    b
    a
    • 3
    • 12
  • s

    salmon-printer-16080

    12/02/2021, 3:04 AM
    How often do the
    pulumi-azure-native
    providers get released? I see 1.48 is the latest from 2 days ago, some code im wanting to use was just merged yesterday, so just seeing when this will become available for us to use 🙂
    l
    b
    t
    • 4
    • 8
  • h

    high-vase-81611

    12/02/2021, 4:48 PM
    hello there! there is a way to handle 2 resources from diferent region on my code ?
    g
    • 2
    • 1
  • m

    melodic-car-16900

    12/02/2021, 6:06 PM
    If I want to use data from a pulumi config file in another script (something that seeds a database) - all I want to do is decrypt the values, can I do that?
    p
    r
    • 3
    • 10
  • m

    melodic-car-16900

    12/02/2021, 7:34 PM
    Just putting it out there, the relationship between Pulumi and Prisma has ended up in an interesting position to me
  • m

    melodic-car-16900

    12/02/2021, 7:35 PM
    specifically where I am right now, which is to do with seeding the database
  • m

    melodic-car-16900

    12/02/2021, 7:46 PM
    e.g. in other systems (e.g. Snowflake) I define the schemas using pulumi, but here I'm using prisma, which in turn has it's own declarative markup etc, then there's migrations etc. idk, it gets pretty specific pretty quickly
  • b

    big-potato-91793

    12/02/2021, 8:43 PM
    Does pulumi does something if we get the
    SIGKILL
    signal?
  • b

    billions-hospital-77217

    12/02/2021, 9:41 PM
    Can I output a list of strings in order after spinning up multiple servers with Pulumi?
    g
    • 2
    • 3
  • l

    little-journalist-4778

    12/03/2021, 8:55 AM
    I think this issue deserve high priority, ATM we are forced to set
    skipMetadataApiCheck false
    to all providers: https://github.com/pulumi/pulumi-aws/issues/1692
  • m

    mammoth-journalist-45153

    12/03/2021, 9:53 AM
    Hi, we are using
    pulumi.asset
    objects,
    pulumi.asset.FileArchive, pulumi.asset.FileAsset
    and others. We are seeing that when two developers deploy to the same environment, using the exact same files, pulumi wrongly identifies that these files/folders have changed => this causes very large deployment times (that is another issue). All developers use a similar environment setup, and are all on the same pulumi version. Has anyone encountered similar behavior? any thoughts about what we can do to further investigate why this is happening?
  • s

    salmon-area-34685

    12/03/2021, 10:18 AM
    Hi Guys, I've been using pulumi for a while now. I'm going into production with the first architecture soon. I am evaluating the various plans, we have corporate AD(which we will have to use) but we are a small team. So I am undecided between the two plans. Anyway, what happens after the trial in the "team" plan?
    b
    • 2
    • 3
  • w

    worried-xylophone-86184

    12/03/2021, 1:50 PM
    Hi all ! I am trying out Pulumi and used the S3 backend option for storing state. Now when I want to switch back to the Pulumi managed backend service I get the following traceback whenever I try to login by running
    pulumi login <https://app.pulumi.com>
    error: problem logging in: getting user info from <https://app.pulumi.com>: unmarshalling response object: invalid character '<' looking for beginning of value
    Any help would be appreciated
    b
    • 2
    • 3
  • l

    late-chef-72896

    12/03/2021, 3:21 PM
    Hi I’m just getting started with Pulumi (using Typescript ) and I’m currently building some stuff to configure AWS Organizations (accounts. policies etc..). As a test I’m now looking into the
    getOrganization
    function and to start simple I want to get the org ID. Based on how that is used in this example https://www.pulumi.com/registry/packages/aws/api-docs/organizations/getorganization/#sns-topic-that-can-be-interacted-by-the-organization-only I assumed I could use this
    const org = aws.organizations.getOrganization({});
    console.log(org.id)
    b
    • 2
    • 2
  • l

    late-chef-72896

    12/03/2021, 3:21 PM
    but the org returns a Promise and so I cannot get the
    id
    that way.
  • l

    late-chef-72896

    12/03/2021, 3:22 PM
    I also looked at the example of getting a list of the accounts in the org and that also seems to fail for the same reason
  • h

    high-morning-17948

    12/03/2021, 5:00 PM
    Is there a way to get an existing VPC by its name instead of the ID?
    d
    • 2
    • 5
  • b

    billions-hospital-77217

    12/03/2021, 7:00 PM
    Is there a code sample of how to stuff Pulumi Aws Instances into an array? Or similar? GOT IT:
    Pulumi.Aws.Ebs.Volume[] mem_sql_master_vol = new Pulumi.Aws.Ebs.Volume[MASTERS];
  • a

    acceptable-oil-81004

    12/03/2021, 7:50 PM
    Hey guys, does anyone have an sample using function/sourcecodehash? MY lambdas source are not being updated after uploading new binaries to S3
    ✅ 1
    • 1
    • 2
  • b

    busy-island-31180

    12/04/2021, 12:48 AM
    hi folks - I’m here because I’m really struggling to understand how to do something in Go for Pulumi. That concept is… if I have a resource that takes a
    string
    as an input. How do I convert from
    pulumi.InputString
    to a vanilla
    string
    ?
  • b

    busy-island-31180

    12/04/2021, 12:50 AM
    for a concrete example, I am creating a role: https://www.pulumi.com/registry/packages/aws/api-docs/iam/role/#assumerolepolicy_go this role needs an
    AssumeRolePolicy
    (which is just a string/json document). In order to construct this json document, I need an output value from another resource (an OIDC provider), which would not be known until
    apply
    time
  • b

    busy-island-31180

    12/04/2021, 12:51 AM
    I simply don’t understand how to pass in a vanilla string, when that string needs to be async/dynamically created
  • b

    busy-island-31180

    12/04/2021, 12:52 AM
    I’ll cross post in #golang - sorry if this was the wrong channel
  • q

    quiet-wolf-18467

    12/04/2021, 12:38 PM
    Can you share some code, please, @busy-island-31180 ? I want to make sure I understand the problem correctly 😀
  • q

    quiet-wolf-18467

    12/04/2021, 12:39 PM
    Nevermind, i See @billowy-army-68599 helped out in #golang
  • m

    mammoth-journalist-45153

    12/04/2021, 4:36 PM
    Hi, bumping this topic again, if any one has any clue would appreciate pointing me us in the right direction https://pulumi-community.slack.com/archives/C84L4E3N1/p1638525217141100
    g
    • 2
    • 2
  • p

    purple-train-14007

    12/04/2021, 6:12 PM
    Is there a way for Pulumi to generate a terraform state file for terraform users to use?
    q
    b
    +2
    • 5
    • 7
  • b

    billowy-laptop-45963

    12/05/2021, 10:40 PM
    I remember seeing an example(or maybe blog post) years ago about creating a CustomResource in typescript to manage something that did not have a provider. Am I mistaken?
    b
    • 2
    • 1
  • l

    little-cartoon-10569

    12/06/2021, 1:15 AM
    I'm working on a project cloned from a colleague today, new dir, new creds, existing codebase, never had it on my computer before. I'm getting
    error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
    in this project. But not any other project. Afaik, the plugins are shared under ~/.pulumi. What else should I look at to diagnose this?
    b
    • 2
    • 10
Powered by Linen
Title
l

little-cartoon-10569

12/06/2021, 1:15 AM
I'm working on a project cloned from a colleague today, new dir, new creds, existing codebase, never had it on my computer before. I'm getting
error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
in this project. But not any other project. Afaik, the plugins are shared under ~/.pulumi. What else should I look at to diagnose this?
b

billowy-army-68599

12/06/2021, 1:27 AM
you have the node_modules locally?
l

little-cartoon-10569

12/06/2021, 1:35 AM
Yes, bind-,mounted into my container...
What node module should I be looking for?
When I run the binary manually, i get the same error...
b

billowy-army-68599

12/06/2021, 1:40 AM
It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install
this implies it can't find the
@pulumi/pulumi
sdk: https://github.com/pulumi/pulumi/blob/d9dd88c7401d9485dfbb3062269cf10bcdcfc1b7/sdk/nodejs/cmd/pulumi-language-nodejs/main.go#L109-L114 are you using automation API? or just a standard pulumi project?
l

little-cartoon-10569

12/06/2021, 2:00 AM
Standard project. Sorry for slow repilies, lots going on around here...
Ah, I think I've found it... I hard-coded the wrong host directory in my
npm
alias
b

billowy-army-68599

12/06/2021, 2:02 AM
and the sdk shows up in
npm list
😄
l

little-cartoon-10569

12/06/2021, 2:03 AM
No, doesn't show up in npm list.. hence the problem. Thank you for remote debugging 🙂
View count: 1