• a

    astonishing-branch-30086

    3 weeks ago
    We are using a dynamic provider written in Python. In one instance, we want to delete a resource using the provider. The delete() method is implemented and has worked before, but we are now running into a problem. Due to refactoring, we now require additional props in the delete() method, that were not present when the resource was created. Thus it is not part of
    outputs
    in the resource's stack entry. How do I solve this cleanly? I'm guessing the correct way is to somehow update the state only, so that for the dynamic resource, the outputs are rewritten with the current inputs?
  • a

    astonishing-branch-30086

    3 weeks ago
    Thinking more about it now, would
    pulumi refresh
    do this? Admittedly, we were lazy and have skipped the implementation of refresh() for the resource.
  • v

    victorious-continent-984

    3 weeks ago
    Hi, with new version of pulumi 3.39.1 noticed warnings:
    warning: Error downloading plugin: 403 HTTP error fetching plugin from  <https://get.pulumi.com/releases/plugins/>...
    I’m using several custom python packages generated using crd2pulumi. It seems like plugin resolving mechanism tries to download something from public repo… This is very annoying since int adds a good few minutes for each pulumi up run. Do you know anything about it?
    v
    l
    3 replies
    Copy to Clipboard
  • e

    elegant-smartphone-60282

    4 weeks ago
    Hey, i have this directory tree
    parent_dir:
      file_1.py
      folder_1:
        folder_2:
          file_2.py
    i want to import file_1 to file_2, how to do that?
    e
    h
    2 replies
    Copy to Clipboard
  • a

    able-thailand-87943

    2 weeks ago
    Hello, Does anyone know if the field
    updateInProgress
    as a part of the output from
    pulumi stack ls --json
    really shows "true", if there is a pulumi up running in the background when not using pulumi service backend? In the short tests we have run, we see that it always returns
    false
  • s

    steep-lamp-20408

    2 weeks ago
    Hey there, Is anyone using Localstack with Pulumi in Python, and/or pulumi-local? I read this doc which got me pretty excited before I tried since it looked simple enough.: https://docs.localstack.cloud/integrations/pulumi/ However, when running the command
    pulumilocal up
    , I get this non explicit error:
    Do you want to perform this update? yes
    Updating (localstack)
    
    View Live: <https://app.pulumi.com/my-user/myproject-backend/localstack/updates/5>
    
         Type                       Name                             Status                  Info
         pulumi:pulumi:Stack        myproject-backend-localstack     **failed**              1 error; 2 warnings
     +   └─ aws:appsync:GraphQLApi  myproject-localstack-graphqlapi  **creating failed**     1 error 
    
    Diagnostics:
      aws:appsync:GraphQLApi (myproject-localstack-graphqlapi):
        error: 1 error occurred:
            * error creating AppSync GraphQL API: InternalFailure:
            status code: 501, request id: 2DNPS6TTA6YNSW2F783MVI1V6DJZEJ8GJ61G1F4F
    
    pulumi:pulumi:Stack (myproject-backend-localstack):
        warning: provider config warning: Use s3_use_path_style instead.
        warning: provider config warning: Use s3_use_path_style instead.
        error: update failed
    Notes: • The stack works well when
    pulumi up
    on non-local. • The stack consists of AWS resources, including a Appsync GraphQL API • Side question: what are those warnings?
    s
    m
    24 replies
    Copy to Clipboard
  • k

    kind-jelly-61624

    1 week ago
    Does anyone have experience writing unit tests for Component Resources? I’m wondering if it’s possible to mock the call as it would come via the sdk
    k
    l
    3 replies
    Copy to Clipboard
  • f

    fresh-scientist-11672

    1 week ago
    Hi, we have built an internal service using pulumi under the hood but we're using old python libs 😅. We are considering upgrade lib versions, does anyone have made it or know any breaking change? Currently we are using:
    $ pip freeze | grep pulumi
    pulumi==2.19.0
    pulumi-gcp==4.12.0
    f
    s
    2 replies
    Copy to Clipboard
  • q

    quaint-tailor-52411

    1 week ago
    i was expecting to be able to access all registered outputs as outputs like a standard resource
  • q

    quaint-tailor-52411

    1 week ago
    for ComponentResources, what does
    self.register_outputs()
    actually do? when I register some child resources there and then later try to access them as a property of component object i get
    object no attribute my_outputted_resource
    q
    s
    27 replies
    Copy to Clipboard