https://pulumi.com logo
Docs
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
  • p

    prehistoric-coat-10166

    03/22/2021, 11:50 AM
    @better-shampoo-48884 this is a known challenge, one alternative which may not be ideal but works with both local & service stacks is to use the project name or some other prefix for stacks, e.g.
    service.env
    network.env
    from https://github.com/pulumi/pulumi/issues/2522#issuecomment-593088942
  • b

    better-shampoo-48884

    03/22/2021, 11:57 AM
    I did at some point actually rename a stack to a full Org/Project/Stack name and it created subfolders...
    d
    • 2
    • 1
  • b

    better-shampoo-48884

    03/22/2021, 11:58 AM
    the end result of course was that it completely lost my stack, but the folder structure was in the .pulumi directory šŸ˜„
  • w

    worried-knife-31967

    03/22/2021, 12:02 PM
    I think there's definitely scope for a unit testing library for Pulumi C# for all these snippets...
  • b

    bored-oyster-3147

    03/22/2021, 12:57 PM
    @better-shampoo-48884 I just use an S3 bucket and each pulumi project gets its own directory in the bucket
    b
    w
    p
    • 4
    • 14
  • w

    worried-knife-31967

    03/22/2021, 1:20 PM
    @better-shampoo-48884 I blogged about that very thing. https://martinjt.me/2021/03/04/pulumi-multiple-projects-with-custom-backends/
    šŸ™Œ 1
  • w

    worried-knife-31967

    03/22/2021, 2:19 PM
    Is there anyway to get a JSON output of the proposed/deployed changes from the Github action?
    m
    • 2
    • 4
  • b

    better-shampoo-48884

    03/22/2021, 2:36 PM
    Ne'er mind - editing this text to hide my shame šŸ˜„ Essentially, created a new stack for a completely new state backend and new project and was shocked to see that it tried to import a completely unrelated resource.. but I had forgotten to remove `{import: xxx}`from customresourceoptions of the resource i was trying to create (due to keyvaults being nasty about being deleted and such) šŸ˜„ Scared the living shiznit out of me, but glad it had a logical reason.
  • a

    adorable-alligator-23779

    03/22/2021, 3:46 PM
    Hey all. i’m trying to make a small GO-CLI that will deploy to k8s using Pulumi. i keep getting error: no resource plugin ā€˜kubernetes’ found in the workspace or on your $PATH any ideas?, Github issues has no info :() im trying to use the automation api described here: Thttps://www.pulumi.com/blog/automation-api/ and https://www.pulumi.com/blog/deploy-kubernetes-and-apps-with-go/ i use auto.NewStackInlineSourceand feed it with a pulumi.RunFunc where i do all the pulumi ā€œmagicā€ and the plugin is installed according to pulumi:
    pulumi plugin ls
    NAME        KIND      VERSION  SIZE    INSTALLED       LAST USED
    aws         resource  3.26.1   260 MB  5 days ago      5 days ago
    kubernetes  resource  2.8.3    67 MB   10 minutes ago  10 minutes ago
    b
    • 2
    • 19
  • a

    adorable-alligator-23779

    03/22/2021, 3:49 PM
    code here: https://play.golang.org/p/7W_wD62qf2j
  • b

    brave-angle-33257

    03/22/2021, 5:34 PM
    hi, can someone help me with this promise() syntax.. been stuck on this for too long this morning
    b
    b
    • 3
    • 21
  • b

    better-shampoo-48884

    03/22/2021, 6:03 PM
    any way to prevent pulumi from re-writing the stack config file? Sometimes (don't know why) some of my projects end up always rewriting (i.e. removing all comments and sorting the yaml + saving the file) the stack config file (pulumi.stackname.yml)...
    b
    • 2
    • 6
  • f

    fresh-summer-65887

    03/22/2021, 6:22 PM
    Been reflecting on refactoring risks and potential for data loss. i.e. renaming a dynamodb table resource resulting in table re-creation. What are people's thoughts on mitigating such? I'm thinking that give an service/application, putting the data related resources (s3, sqs, rds etc) in own stack separate from the application stack and force dev's to manage them of them separately. Thoughts on that approach?
  • b

    better-shampoo-48884

    03/22/2021, 6:31 PM
    That could work - but you then risk breaking dependencies - for instance changing some networking might break your db
  • b

    better-shampoo-48884

    03/22/2021, 6:31 PM
    I find it better to ensure that diffs are read & understood prior to execution when dealing with sensitive things like that.
  • b

    better-shampoo-48884

    03/22/2021, 6:33 PM
    you could also use the protect: true on those things once you're happy with them (https://www.pulumi.com/docs/intro/concepts/resources/#protect)
    f
    w
    • 3
    • 9
  • m

    mysterious-piano-17006

    03/22/2021, 7:33 PM
    Hello! I use Pulumi to deploy a Lambda using
    aws.lambda.CallbackFunction
    However, my function requires a library that requires aws-sdk; When running my Lambda, it complains that jmespath is not installed (a dependency of aws-sdk); when I add it to my package.json, it then complains that xml2js is missing, so I guess it is a bad idea to add all awk-sdk's dependencies to my Pulumi project's package.json. So I am looking for a way for Pulumi to exclude my dependency's awk-code from the package. I understand I can pass a
    codePathOptions
    object with a
    extraExcludePackages
    attribute to
    CallbackFunction
    but I did not find docs about it and according to the code it takes an array of package names and aws-sdk is always added to it. So here is my question (thanks for reading all the context ;)) : What is the syntax I should use to exclude my dependency's awk-sdk? Thanks! šŸ™‚
    d
    • 2
    • 10
  • a

    adamant-translator-31969

    03/22/2021, 7:37 PM
    Hi! what is the meaning of streamId of
    debug(msg: string, resource?: resourceTypes.Resource, streamId?: undefined | number, ephemeral?: undefined | false | true): Promise<void>
  • a

    adorable-alligator-23779

    03/22/2021, 10:21 PM
    How do i convert a `pulumi.StringPtrOutpu`` to a string or a normal pointer in go, feels like i am missing something. I want to get the name of the created service with `service, err := corev1.NewService(ctx, svcName, &corev1.ServiceArgs...``
    l
    w
    • 3
    • 34
  • r

    refined-potato-69402

    03/23/2021, 9:59 AM
    how can I force pulumi cli to destroy? it's throwing error
    timed out waiting to be Ready
    b
    • 2
    • 1
  • w

    wide-crayon-4093

    03/23/2021, 10:03 AM
    hey folks. has it been considered to allow splitting up stack configs? e.g something like
    Pulumi.stack_name.config_bucket.yaml
    b
    • 2
    • 1
  • d

    dazzling-sundown-39670

    03/23/2021, 10:44 AM
    Hello. Will it be possible to use Pulumi with Cloudflare Pages anytime soon?
  • a

    adamant-cricket-25794

    03/23/2021, 12:51 PM
    hello guys. quick question here.. I want to use pulumi to set up some stuff in spinnaker. I see there is no official spinnaker provider in pulumi, but there is some provider available for terraform: https://github.com/armory-io/terraform-provider-spinnaker giving it a quick look, do you think is gonna be possible to use the
    pulumi-tf-provider-boilerplate
    in order to wrap that terraform provider ? is it a simple procedure for someone like me who has literally 0 experience with go ?
  • l

    limited-rainbow-51650

    03/23/2021, 1:47 PM
    crd2pulumi
    is a killer, except for this little nuisance: https://github.com/pulumi/crd2pulumi/issues/19
  • l

    limited-rainbow-51650

    03/23/2021, 3:05 PM
    And I keep on being bitten by the issues I filed myself: https://github.com/pulumi/pulumi/issues/5318 šŸ˜‚
    b
    • 2
    • 2
  • l

    limited-rainbow-51650

    03/23/2021, 5:20 PM
    I have a GCP
    BackendConfig
    CRD generated via
    crd2pulumi
    . But after creating an instance of it, I can’t refer to
    crdInstance.metadata.name
    . It errors with:
    Property 'name' does not exist on type 'OutputInstance<ObjectMeta | undefined>'.
    In the generated code, this
    ObjectMeta
    is defined as:
    export type ObjectMeta = k8s.types.input.meta.v1.ObjectMeta;
    Am I missing something here?
    g
    • 2
    • 3
  • g

    gorgeous-monitor-13375

    03/23/2021, 5:41 PM
    Hi everyone!Ā  I have a question I was hoping someone could help me with.Ā  I'm using crosswalk to create an ECS instance with ELB and so far it has made it so much easier.Ā  However, I don't quite understand the documentation when it explains how to add advanced settings - in my case, a different health check endpoint.Ā  Currently my target group seems to be created automatically due to my passing the listener into theĀ 
    portMappings
    Ā attribute of my ECS service, but I can't see a way to override any of those defaults without fully creating a target group myself.Ā  If I have to do that I will lose all the benefit of crosswalk in the first place. TL;DR: what's the correct way to change the heath check path of the auto-generated target group when passing an application load balancer listener into an ECS service? Thanks in advance!Ā šŸ™‚
    b
    • 2
    • 2
  • e

    elegant-carpet-8859

    03/23/2021, 6:08 PM
    I'm trying to migrate some resources between kubernetes clusters in the same stack as we're going to move and then kill the old cluster. I have the new cluster up and am installing all the same helm charts into it one at a time. I'm on the first Helm chart and am getting an error because it installs CRDs. Pulumi is saying the new CRDs have a duplicate resource URN. I don't think I can do anything about that as all I can do in the Pulumi code is affect the name of the chart. Anyone know a way around this?
    b
    • 2
    • 4
  • e

    elegant-carpet-8859

    03/23/2021, 6:09 PM
    I'm surprised Pulumi doesn't give them unique 7 digit extensions like most things behind the scenes
  • r

    rough-window-15889

    03/23/2021, 6:24 PM
    What causes an error of Resource monitor is terminating in RegisterResourceOutputs? I keep hitting this error on one of my stacks and not sure why. The other stacks seem to be functioning normally.
    b
    g
    • 3
    • 6
Powered by Linen
Title
r

rough-window-15889

03/23/2021, 6:24 PM
What causes an error of Resource monitor is terminating in RegisterResourceOutputs? I keep hitting this error on one of my stacks and not sure why. The other stacks seem to be functioning normally.
b

bored-oyster-3147

03/23/2021, 6:25 PM
are you passing anything to
RegisterResourceOutputs
?
r

rough-window-15889

03/23/2021, 6:27 PM
No. Just trying to create database users. It is strange because the resources are already created but I can’t run pulumi preview without it the error popping up and failing.
b

bored-oyster-3147

03/23/2021, 6:28 PM
can you provide more information, are you calling this on a Stack? On a ComponentResource, or a CustomResource? Can you share any code?
g

gentle-diamond-70147

03/23/2021, 6:33 PM
Can you share the full error output as well?
šŸ‘€ 1
r

rough-window-15889

03/23/2021, 6:41 PM
It would be on ComponentResource and let me see if I can get error output
Appears it was a node package issue. I deleted them and reinstalled and that fixed it.
šŸ™Œ 2
View count: 1