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
  • b

    breezy-butcher-78604

    11/11/2020, 5:35 AM
    i have a stack that we've broken somehow and every update is now returning an error
    failed to verify snapshot
    no matter what resources i target with the update. any tips on where to start trying to fix this?
    g
    • 2
    • 2
  • d

    dazzling-sundown-39670

    11/11/2020, 10:58 AM
    I'm trying to create a resource that only "runs" if a specified field has changed. The closest I've come to this is by using a
    pulumi.dynamic.ResourceProvider
    , but it seems the context is all wrong when running stuff inside it. This is basically my code:
    const baseImageProvider: pulumi.dynamic.ResourceProvider = {
      create(inputs) {
        const image = repository.buildAndPushImage(inputs.buildOptions);
        return Promise.resolve({
          id: inputs.hash,
          outs: {
            image,
            hash: inputs.hash,
          },
        });
      },
      update(id, olds, news) {
        if (olds.hash === news.hash) {
          return Promise.resolve({
            outs: olds,
          });
        }
        const image = repository.buildAndPushImage(news.buildOptions);
        return Promise.resolve({
          outs: {
            image,
            hash: news.hash,
          },
        });
      },
    };
    But I'm getting the following error:
    Error: Program run without the Pulumi engine available; re-run using the pulumi CLI
    . Any suggestions on how to solve this? Another solution would also be welcome
    • 1
    • 1
  • s

    salmon-portugal-93186

    11/11/2020, 12:55 PM
    Hi all, I'm trying to generate Kuberentes YAML files with Pulumi's new
    "render-yaml"
    provider. I'd like to try Pulumi as a replacement for our already existing YAML generation tools that we use in our gitops repository (holding desired state for 12 EKS clusters). However, I can't seem to be able to remove the
    autoNaming
    functionality of the Kubernetes resources. Since I'm generating YAML directly, I don't want Pulumi to generate unique suffixes at all. I'd like to generate the exact same resource names we already have deployed. Is there any way to do this? I saw some discussions/proposals on Github, but none of them works for me. cc @calm-apple-46440 @gorgeous-egg-16927 Thanks! Vojtech
    d
    • 2
    • 3
  • i

    icy-jordan-58549

    11/11/2020, 1:26 PM
    getting really slow
    pulumi up
    , got a trace results and this specific LanguageRuntime takes 1m14sec, out form whole
    pulumi plan
    (1m17sec). Any ideas?
    t
    w
    • 3
    • 14
  • p

    proud-afternoon-49521

    11/11/2020, 4:39 PM
    hi there, when deploying kubernetes helm or yaml with pulumi, sometimes the deployments won’t start for various reasons, that may be unrelated to pulumi, how can I get pulumi to just apply the yaml and carry on without waiting?
    f
    • 2
    • 2
  • h

    hundreds-toddler-20724

    11/11/2020, 9:56 PM
    I have a use case that doesn't seem to work very well with a C# style Pulumi project. Wanted to check and see if I am thinking about this correctly or if there is a better approach. I'll describe in the reply.
    • 1
    • 1
  • h

    hundreds-toddler-20724

    11/12/2020, 12:04 AM
    Where are max field lengths defined in source? It seems some of them are way off. For example CDN Profile:
    could not make instance of 'azure:cdn/profile:Profile': name 'test-proj-dev-spa-cdn' plus 7 random chars is longer than maximum length 24
    But the Azure documentation says the limit is 260. https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftcdn
    b
    • 2
    • 5
  • m

    mammoth-school-22886

    11/12/2020, 12:27 AM
    Hi, I try to use pulumi to manage alibaba cloud functions. If I just update and zip the function code,
    pulumi up
    can't detect the change. Since the code is set with a string type Filename field, I think it may be expected that pulumi fails to detect the change. Looking for a way to update code, without updating other configs.
  • m

    mammoth-school-22886

    11/12/2020, 12:36 AM
    Here is the functionArgs: https://pkg.go.dev/github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/fc#FunctionArgs
  • s

    stocky-spoon-28903

    11/12/2020, 12:39 AM
    I think you can set the SHASUN too or something, if it’s like AWS
  • h

    hundreds-toddler-20724

    11/12/2020, 2:16 AM
    Error with Pulumi CLI v 2.13.2 and Pulumi.Azure v3.30.0
    l
    • 2
    • 7
  • q

    quiet-wolf-18467

    11/12/2020, 9:36 AM
    Is there a Pulumi Cloud plan for Open Source projects?
    b
    l
    • 3
    • 8
  • f

    full-bear-42554

    11/12/2020, 3:34 PM
    I'm heading a hard time getting a GCP instance imported in Go.
    b
    • 2
    • 10
  • f

    full-bear-42554

    11/12/2020, 3:34 PM
    I have set the environment variable to my credentials JSON file and have specified every required field in the configuration struct.
  • f

    full-bear-42554

    11/12/2020, 3:35 PM
    But, I get the error message that my specified zone couldn't be found.
  • f

    full-bear-42554

    11/12/2020, 3:35 PM
    "us-west1-a"....
  • f

    full-bear-42554

    11/12/2020, 3:35 PM
    How can I go about debugging my issue?
  • p

    powerful-printer-57241

    11/12/2020, 4:29 PM
    Hi, we are using the Pulumi task for Azure Pipelines, configuring it as follows:
    - task: Pulumi@1
      inputs:
        azureSubscription: ${{ parameters.azureSubscription }}
        command: up 
        args: --yes
        cwd: ${{ parameters.pulumiProjectDirectory }}
        stack: ${{ parameters.stackName }}
    However, it fails with
    pulumi:pulumi:Stack Server.Environments-FeatureEnvironment-21103    Determining projects to restore...
        pulumi:pulumi:Stack Server.Environments-FeatureEnvironment-21103  D:\a\1\s\src\Server.Environments\Server.Environments.csproj : error NU1101: Unable to find package Server.Library. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, <http://nuget.org|nuget.org>
        pulumi:pulumi:Stack Server.Environments-FeatureEnvironment-21103    Failed to restore D:\a\1\s\src\Server.Environments\Server.Environments.csproj (in 14.39 sec).
        pulumi:pulumi:Stack Server.Environments-FeatureEnvironment-21103  Build FAILED.
    The reason apparently is that it ignores the
    Server.Environments\.nuget\NuGet.config
    file to restore packages. In the config there is a private feed configured where Server.Library is available. How to tell the task it should use the
    NuGet.config
    file? Thanks!
    g
    • 2
    • 2
  • f

    full-bear-42554

    11/12/2020, 5:27 PM
    I'm getting a strange error when I try to bring up my stack.
    b
    • 2
    • 2
  • f

    full-bear-42554

    11/12/2020, 5:30 PM
    So, I run
    pulumi up
    and I get the following output:
    PS C:\Users\johnr\Downloads\webserver-new> ..\pulumi-v2.13.2-windows-x64\Pulumi\bin\pulumi.exe up
    Previewing update (dev)
    
    View Live: <https://app.pulumi.com/fuzzybear3965/webbie/dev/previews/41d1109c-eacb-457b-8b1d-53007edf8d3f>
    
         Type                     Name        Plan       Info
     +   pulumi:pulumi:Stack      webbie-dev  create     1 error
     =   └─ gcp:compute:Instance  mr. webbie  import     1 error
    
    Diagnostics:
      pulumi:pulumi:Stack (webbie-dev):
        error: preview failed
    
      gcp:compute:Instance (mr. webbie):
        error: Preview failed: refreshing urn:pulumi:dev::webbie::gcp:compute/instance:Instance::mr. webbie: 1 error occurred:
            * Error when reading or editing Instance 1214816920423977412: googleapi: Error 403: Compute Engine API has not been used in project 349729176759 before or it is disabled. Enable it by visiting <https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=349729176759> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured
    b
    • 2
    • 38
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    The strange part is the project ID.
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    I don't know where it's coming from.
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    project 349729176759 is no project associated with my GCP account.
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    I have one project and that's not its number.
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    That number isn't in any configuration file.
  • f

    full-bear-42554

    11/12/2020, 5:31 PM
    I'm not sure where it's coming from.
  • f

    full-bear-42554

    11/12/2020, 5:32 PM
    When I click that link GCP tells me (of course) that I don't have permission to edit settings for that project and to make sure that it exists.
  • f

    full-bear-42554

    11/12/2020, 5:32 PM
  • b

    bitter-island-32150

    11/12/2020, 7:19 PM
    Hi, any idea for this issue
    pulumi login
    Logging in using access token from PULUMI_ACCESS_TOKEN
    error: problem logging in: getting user info from <https://app.pulumi.com/sadmanrock>: unmarshalling response object: invalid character '<' looking for beginning of value
    w
    • 2
    • 16
  • f

    full-bear-42554

    11/12/2020, 7:42 PM
    How can I have the CLI generate a stack YAML? I just executed https://www.pulumi.com/docs/reference/cli/pulumi_stack_init/ after a
    pulumi stack rm
    and it created the stack (I can see it on
    <http://app.pulumi.com|app.pulumi.com>
    ) but I don't see a YAML file for configuration.
    b
    • 2
    • 3
Powered by Linen
Title
f

full-bear-42554

11/12/2020, 7:42 PM
How can I have the CLI generate a stack YAML? I just executed https://www.pulumi.com/docs/reference/cli/pulumi_stack_init/ after a
pulumi stack rm
and it created the stack (I can see it on
<http://app.pulumi.com|app.pulumi.com>
) but I don't see a YAML file for configuration.
b

broad-dog-22463

11/12/2020, 8:11 PM
As soon as you add a stack level variable the file will be created for you - Pulumi doesn't require the empty file
f

full-bear-42554

11/12/2020, 9:04 PM
You're right. I can confirm. After my first
config set
I had my stack YAML.
Thanks @broad-dog-22463
View count: 1