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
automation-api
  • e

    eager-vase-43200

    10/04/2021, 1:44 AM
    hi, i am using automation-api(golang) to and I started seeing this error all of a sudden. anyone ran into this before when running preview? i skip preview and proceed with
    up
    it work fine.
    2021/10/03 18:42:04 Error in Watcher Error channel: fdopendir /private/var/folders/1t/xtppny2s3b53fzxhkmq7qhw40000gp/T/automation-logs-preview-3543494026: no such file or directory
    FATA[0020] failed. err: failed to run infra automation for shared: failed to run pulumi: failed to run preview: failed to get preview summary
    code: -2
    b
    • 2
    • 9
  • r

    rapid-raincoat-36492

    10/06/2021, 10:30 PM
    When I make a call setting up the automation API like:
    await stack.setAllConfig({
      'aws:region': { value: 'eu-west-1' },
    });
    I see that a
    Pulumi.<stack-id>.yaml
    file is created. Is there a way to supply config where no file gets created?
    m
    • 2
    • 2
  • e

    eager-vase-43200

    10/07/2021, 2:31 AM
    hi, has anyone tried exporting the entire object to the outputs using
    ctx.Export(output-name, output-resource)
    ? i would basically like to add entire objects as outputs as shown in the merge-request - https://github.com/pulumi/pulumi/pull/2311 it is possible to do that in terraform by just adding
    value = google_project.my-project
    but when i do the same using
    ctx.Export()
    and setting the second arg as the object retured by
    NewProject
    func, i still see the same output for all resources.
    output-name : {
            URN: "urn-here"
            ID : "resource-id"
            PackageVersion: ""
        }
  • c

    colossal-vr-62639

    10/11/2021, 9:30 AM
    Is there a way to avoid running any policies via the automation API? For example, integration tests
    w
    • 2
    • 2
  • c

    crooked-pillow-11944

    10/12/2021, 8:20 PM
    I'm using Python with the Automation API I haven't been able to reference modules that are referring to stack metadata because these are initialized outside of the stack initialization Is there a way to package code with an inline program so that it's used consistently across all stacks?
    l
    r
    • 3
    • 25
  • v

    victorious-tomato-90057

    10/13/2021, 4:22 AM
    hi team, I am using the nodejs sdk and the inline runner for integration test of different projects ( shared lib etc.. ). I found that there is
    runSxScheck
    in the
    sdk/nodejs/runtime/settings.ts
    which compare the the module level global identifier
    sxsRandomIdentifier
    . It will failed for the any pulumi runtimes if not point to same module even they have the same version. Is there any way we can bypass it ?
    l
    • 2
    • 3
  • c

    crooked-pillow-11944

    10/13/2021, 11:45 AM
    Is there a way to make component resources more user-friendly by displaying a clear error message when an argument is missing or invalid rather than a stack trace?
    b
    l
    • 3
    • 3
  • p

    polite-shoe-79877

    10/14/2021, 7:05 AM
    Hey, do we always need to install plugin using:
    ws.installPlugin
    or can it be done in an other way like when iam installing the node modules. I cant remember I installed any plugins locally but I got a bounch. Thanks :)
    l
    • 2
    • 1
  • a

    adventurous-angle-51130

    10/14/2021, 10:51 AM
    Hi guys, is there anyway to see the preview of
    RefreshAsync
    command before actually changing the state? Something like
    PreviewAsync
    but for refresh instead.
    l
    b
    • 3
    • 2
  • b

    brief-processor-66221

    10/18/2021, 1:45 PM
    Hi, I'm working on a project using the Pulumi Automation API with python, and I was wondering if there was any way to call a PolicyPack from an inline program that's using the automation API? Searching online and in the Slack didn't turn up anything. 😕 What I was hoping to do was to setup some validation functions, and then call the policy pack validation before or as part of stack.preview(). Anyone have experience doing something similar?
    l
    • 2
    • 2
  • a

    acoustic-iron-92969

    10/20/2021, 5:29 PM
    hey folks, has anyone run into an error like this when trying to use the automation API with go?
    failed to run update: exit status 255\ncode: 255\nstdout: Updating (my-test):\n \n\nstderr: error: failed to discover plugin requirements: grpc: error unmarshalling request: failed to unmarshal *pulumirpc.GetRequiredPluginsRequest\n\n
    b
    • 2
    • 8
  • w

    worried-lunch-10568

    10/22/2021, 6:37 AM
    Hello, how do you test your automation scripts? We are writing inline programs to automate creating/deletion of out stacks but with growth of the scripts it's becoming hard to track all changes. I was thinking about integration test to actually create/delete stack to make sure that it's working. Would like to hear about your experience in testing automation scripts in Pulumi :)
    b
    • 2
    • 3
  • c

    creamy-nail-67991

    10/29/2021, 10:09 AM
    Hi, I am looking for a way to 'preview' the changes before the destroy at .NET using an inline program automation. At the moment, the
    DestroyAsync()
    applies
    --skip-preview
    flag. Is there another way to achieve a similar result?
    b
    • 2
    • 4
  • b

    brave-afternoon-91593

    11/01/2021, 4:31 PM
    I built a portable CLI that connects your Kubernetes cluster to a Tailscale network using Pulumi and the Automation API. https://github.com/adamgoose/tsk
    👍🏽 1
    👍 3
    b
    • 2
    • 7
  • p

    proud-pizza-80589

    11/03/2021, 7:38 AM
    anyone ever see
    error: installing [resource plugin kubernetes-3.6.3] from : untarring file /Users/roderik/.pulumi/plugins/resource-kubernetes-v3.6.3/pulumi-resource-kubernetes: stream error: stream ID 1; PROTOCOL_ERROR
    Got my new M1 Max and use node 16 with the automation api and this starts happening, doesn’t do this on Intel or in amd64 docker containers. Running regular pulumi programs works just fine.
    l
    • 2
    • 4
  • m

    magnificent-lifeguard-15082

    11/12/2021, 6:38 PM
    Two (hopefully!) small questions: How would I replicate the
    --path
    set config behaviour with the [typescript] automation api?
    r
    • 2
    • 3
  • m

    magnificent-lifeguard-15082

    11/12/2021, 6:40 PM
    What is the right way to handle "runtime" errors in a pulumi program/stack config/automation session? Right now when there's an exception thrown (through my own code or pulumi failing, config for example) stdout is spammed with unhandled errors
    Resource monitor is terminating
    and becomes a little tricker to spot the actual isue.
    r
    • 2
    • 3
  • s

    sticky-mechanic-98071

    11/15/2021, 10:58 AM
    Hey everyone 🙂 Glad to join the awesome community of Pulumi! 😛ulumipus-8bit: I'm building an app that should support promotion to production based on the success of e2e test and I wonder if it's possible to have a multi-stage deployment with pulumi for example: 1. Build the application (CRA) and deploy pre-production (Pulumi) 2. run the test against the pre-production (external) 3. deploy production (use the same build artifacts from step 1 The build artifacts from step 1 is uploaded to s3 bucket that is created with pulumi and this is why step 1 combines both the build and deploy
    b
    l
    • 3
    • 7
  • h

    handsome-state-59775

    11/16/2021, 10:09 AM
    I'm getting this while making updates to an existing stack. Had to unprotect resources - that's all the extra things I did before the new up run via automation pipeline. Any insights?
    error: post-step event returned an error: failed to verify snapshot: resource urn:pulumi:mandtpov::iac-azure::azure-native:resources:ResourceGroup$azure-native:containerservice:ManagedCluster$pulumi:providers:kubernetes$kubernetes:core/v1:Namespace::namespace-asdf refers to unknown provider urn:pulumi:qwerty::iac-azure::azure-native:resources:ResourceGroup$azure-native:containerservice:ManagedCluster$pulumi:providers:kubernetes::aksProvider::2b8c1005-6655-4ab1-bdff-320bc1e8ceca
    l
    • 2
    • 3
  • g

    gentle-businessperson-20313

    11/19/2021, 2:03 PM
    has anyone used the automation API with localstack for quick development? does it necessitate putting a custom aws provider on every resource or can it set on the stack level?
    f
    c
    • 3
    • 2
  • m

    most-lighter-95902

    11/22/2021, 10:44 PM
    Has anyone run into this error using Automation API?
  • m

    most-lighter-95902

    11/22/2021, 10:44 PM
    missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
        Set a value using the command `pulumi config set aws:region <value>`
    l
    l
    • 3
    • 3
  • m

    most-lighter-95902

    11/22/2021, 10:45 PM
    I’m using the tutorial as a base for the code and setting the configs with
    await stack.setAllConfig(configMap)
    to set multiple configs at the same time
    r
    • 2
    • 39
  • m

    most-lighter-95902

    11/22/2021, 10:45 PM
    But this error keeps coming up
  • m

    most-lighter-95902

    11/22/2021, 10:46 PM
    Using
    await stack.setConfig('aws:region', { value: 'us-west-1' })
    as per the tutorial doesn’t work either though
  • n

    nutritious-continent-38327

    11/23/2021, 7:13 PM
    Hello guys I'm starting to work with automation API and I'm little confused about plugins in the "pulumi over http" someone could help me?
    r
    • 2
    • 4
  • m

    most-lighter-95902

    11/24/2021, 5:23 AM
    StackReference
    doesn’t seem to work inside Automation API (at least when it’s not run inside the same program) - is this expected? If it’s not available, what options do I have for accessing another stack’s outputs?
    p
    c
    b
    • 4
    • 36
  • m

    most-lighter-95902

    11/26/2021, 3:51 AM
    Switching from
    await LocalWorkspace.createOrSelectStack(args)
    worked fine, but in order to use
    removeStack
    , I switched the implementation to:
    const projectSettings: ProjectSettings = {
          name: projectName,
          runtime: 'nodejs',
        }
        const ws = await LocalWorkspace.create({ projectSettings })
        const stack = await Stack.createOrSelect(stackName, ws)
  • m

    most-lighter-95902

    11/26/2021, 3:51 AM
    Errors out with
    stderr: error: failed to load language plugin nodejs: could not read plugin [/usr/local/bin/pulumi-language-nodejs] stdout: EOF
  • m

    most-lighter-95902

    11/26/2021, 3:52 AM
    What am I doing wrong here?
Powered by Linen
Title
m

most-lighter-95902

11/26/2021, 3:52 AM
What am I doing wrong here?
View count: 1