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

    gentle-rocket-97330

    11/01/2021, 9:10 PM
    Hi all! I want to import an existing S3 bucket into my project. I followed the steps here: https://www.pulumi.com/docs/guides/adopting/import/#adopting-existing-resources. The import command succeeded and I added the output source to my project file. I then run
    pulumi up
    and during the preview stage I get the error message “error: Preview failed: unable to delete resource... ...as it is currently marked for protection. To unprotect the resource, either remove the
    protect
    flag from the resource in your Pulumi program and run
    pulumi up
    or...“. I don’t want to delete it; I want to adopt it. Can anyone help me understand why preview seems to be trying to delete a protected/imported resource?
    w
    • 2
    • 10
  • l

    little-soccer-5693

    11/01/2021, 9:55 PM
    hello. i'm following the example in the pulumi go SDK for creating an apigatewayv2.Route(https://github.com/pulumi/pulumi-aws/blob/master/sdk/go/aws/apigatewayv2/route.go#L82); however the example fails to compile:
    b
    • 2
    • 4
  • f

    freezing-van-87649

    11/02/2021, 12:43 AM
    So are many people using
    PULUMI_SELF_MANAGED_STATE_LOCKING
    ? Wondering about the status of making that a default https://github.com/pulumi/pulumi/issues/6536
  • f

    fierce-engine-31599

    11/02/2021, 7:36 AM
    Once I import an existing resource, is it possible to generate the equivalent typescript code for this resource's current state?
    b
    • 2
    • 9
  • c

    clever-painter-96148

    11/02/2021, 9:40 AM
    Is there a convention to follow for the ComponentResource type argument? Something like company😛roject:ResourceName?
  • b

    bored-barista-23480

    11/02/2021, 1:01 PM
    Hey, everyone! I have a problem importing resources from another project. I create an EKS cluster in the first project and want to import it in my second to add managed node groups. But somethings wrong, because I get the error
    'dict' object has no attribute 'core'
    (I am using
    cluster.core
    as an input of the managed node group). The exported resource is of type
    pulumi_eks.Cluster
    . I used imports from other projects before and it worked without a problem. What could be wrong?
    s
    • 2
    • 1
  • a

    able-camera-57198

    11/02/2021, 5:18 PM
    Do output types always have to be primitive? (string, int)
  • a

    able-camera-57198

    11/02/2021, 5:18 PM
    Or does pulumi support me having outputs of language-specific complex types, like in C#
    List
    , etc... ?
    s
    • 2
    • 5
  • b

    bulky-policeman-29913

    11/02/2021, 6:09 PM
    I know the pulumi state mgmt for s3 providers is limited, but can anyone tell me if there is a way to avoid corrupted state when two deployments get kicked off concurrently?
    b
    • 2
    • 5
  • a

    able-camera-57198

    11/03/2021, 1:05 AM
    General question, though I know it applies to #gcp... What's the status of the GCP providers? Activity seems to be down and the native repository hasn't seen any commits for a while. Do certain providers in Pulumi see better support than others?
    b
    • 2
    • 30
  • b

    brave-afternoon-91593

    11/03/2021, 3:46 AM
    We’re beginning to adopt Pulumi more broadly within our organization. As such, we’re needing simple abstractions that can be re-used across projects, namely helper functions to create opinionated AWS and Kubernetes providers (we just fetch kubeconfigs from S3 and create k8s providers accordingly). I’m just working in a single repository that contains multiple subdirectories, each containing their own Pulumi project. I’d like to create
    /lib/**/*.ts
    , then install it by adding something like
    "lib": "file:../lib"
    to my
    package.json
    in each of the other directories. However, I don’t want this lib to define provider versions, rather I’d like the lib’s
    package.json
    to simply reference
    peerDependencies
    of the referenced Pulumi providers. However, when I do this, pulumi fails to preview thanks to
    error TS2307: Cannot find module '@pulumi/aws|kubernetes'.
    This is probably just a Typescript question, but surely there’s a way to tell typescript that the types referenced in the libs should refer to the types defined in the project package.json.
    b
    • 2
    • 12
  • b

    brash-airline-37413

    11/03/2021, 3:51 AM
    Hello I’ve got a multi language component building and distributing into a number of tarballs for each platform which I can install with
    pulumi plugin install resource $name $version -f mydist.tar.gz
    However once installed I don’t understand what the point of installing it as a package is since doing that alone doesn’t let me import the component resources that are declared in that package. Is the point of
    pulumi plugin install resource …
    to allow the component resources to be imported in my language of choice or am I still expected to import via nuget/npm/pip etc as well?
    b
    • 2
    • 10
  • t

    tall-beard-99429

    11/03/2021, 9:45 AM
    Bit of a strange one, if I run
    pulumi preview
    locally I get 196 unchanged, if I run it in my CI (exact same command), I get - 58 to delete, 138 unchanged. Any ideas why this would happen?
    b
    • 2
    • 3
  • b

    brash-vr-21201

    11/03/2021, 9:57 AM
    Error: ENOENT: no such file or directory, stat '/tmp/automation-logs-preview-9DtLoU/eventlog.txt' error: [runtime] Unhandled exception: Error: ENOENT: no such file or directory, stat '/tmp/automation-logs-preview-9DtLoU/eventlog.txt' error: [runtime] Unhandled exception: Error: ENOENT: no such file or directory, stat '/tmp/automation-logs-preview-9DtLoU/eventlog.txt Hi we are getting this error constantly while using the automation api with typescript SDK while previewing or applying. The resources are deployed properly and there is no indication in diagnostic logs as well. The program is an inline program and the preview is being called via an express router . The error stops coming when the node js server is restarted but we are not able to find the reason for this. The cli version is 3.16.0 Node module @pulumi/pulumi is also 3.16.0 Also is there a way to pass --logtostderr flag via the automation api so we can maybe bypass this issue till we find the cause.
  • m

    most-lighter-95902

    11/03/2021, 3:35 PM
    Is there a way to turn off the pulumi[bot] notifications on github actions plugin?
  • s

    steep-portugal-37539

    11/03/2021, 4:08 PM
    Hey all! Is anyone aware of a way to set a delay time for creation/update/deletion of a resource? Use case: K8s cluster with the external-dns (ED) and aws-load-balancer-controller (ALB) Helm chart installed. The ED chart tracks your ingresses/services and will create DNS records for them. The ALB chart will create loadbalancers for them. (I don’t think the ALB chart is relevant to this question, but noting it just in case it may be). If i decide to tear down the ingresses and ED helm chart, it seems that there can be a race condition between the ED chart being deleted and it deleting any records it created for the ingresses. I have tried setting
    dependsOn
    on the ingresses to be be
    [ALB, ED]
    so that pulumi understands that the ingresses have a dependency on these 2 Helm charts. It doesn’t seem to completely have helped. A delay option would be nice, because then the 2 Helm charts can delete the resources within the given delay time, and only then be removed from the cluster.
    f
    b
    • 3
    • 23
  • b

    bored-barista-23480

    11/03/2021, 4:14 PM
    Hey all! I am trying to use a resource imported from another project but I get the error
    'dependsOn' was passed a value that was not a Resource.
    I'm unable to find any helpful explanation where the error comes from and most important how to solve it.
    👀 1
    c
    s
    • 3
    • 6
  • f

    future-refrigerator-88869

    11/03/2021, 11:43 PM
    Hi everyone. Coming back with another issue. I am trying to run
    pulumi preview
    as part of a github action and keeps complaining about not finding the eks provider:
    error: no resource plugin 'eks' found in the workspace or on your $PATH
    In my package.json as part of dependencies i have eks
    "@pulumi/eks": "^0.34.0"
    . This seems to be working locally but in the actions it fails. As part of the
    npm install
    in CI, I can see that the other pulumi packages that I use (for example cloudflare) are getting registered as part of npm install, however EKS package does not produce any log. Any ideas ?
    b
    • 2
    • 8
  • l

    little-cartoon-10569

    11/03/2021, 11:49 PM
    Triggered by previous question ☝️: does anyone have recommendations on setting up provider creds (Azure, AWS) retrieved from an external IdP (e.g. Okta, Auth0), possibly using SAML?
    • 1
    • 2
  • r

    red-football-97286

    11/04/2021, 8:49 AM
    I'm building an EC2 which creates a network interface and attaches to the instance as a primary eni. I've set the 
    deleteOnTermination
     to false (as I want to keep the eni on deletion of the ec2. To do with an app license). But running 
    pulumi destroy
     removes the eni. If I terminate through the console, the eni remains. Is there a way I can remove everything apart from the eni? (
    protect
    prevents deletion of the whole stack).
    b
    b
    • 3
    • 24
  • s

    sparse-spring-91820

    11/04/2021, 10:10 AM
    Is it possible to somehow create resource which will be shared across all stacks? I want to create eks cluster which will be used by dev, staging and prod stack instead of creating a cluster per stack. I can create a separate pulumi folder for the cluster but I'm looking is there any other option I missed?
    p
    f
    • 3
    • 62
  • p

    purple-keyboard-34401

    11/04/2021, 10:51 AM
    Hi, everyone, i’m new in pulumi, so i added some resources to a stack stack that is already deployed and when i ran
    pulumi preview
    i got some of the old resources in yellow…my question is those resource will get modified?
    l
    • 2
    • 1
  • b

    blue-pharmacist-31672

    11/04/2021, 12:05 PM
    Is there a way to run a
    pulumi up
    command from a different directory than the one your project is stored in? I'm trying something like
    pulumi up ./path/to/project
    Where my stack yaml and pulumi yaml are stored. However, pulumi starts asking me for the project name and description when I do this rather than running the existing one and then errors with a
    no file or directory
    . I've tried specifying using the
    --stack
    flag or using the
    file://
    system specifier but no luck. Any ideas always appreciated. Thanks 😄
    s
    • 2
    • 3
  • p

    prehistoric-activity-61023

    11/04/2021, 4:12 PM
    Just playing with
    pulumi import
    (btw, I might have discovered a small bug but first need to run some tests to make sure it’s something worth reporting) and I came across one issue: is it possible to simply list all defined resources with their URNs (so I can remove them using
    pulumi state delete
    ) or the only way to do that right now is to manually parse
    pulumi stack export
    ? EDIT: the answer is
    pulumi stack --show-urns
    • 1
    • 2
  • b

    blue-vegetable-34564

    11/04/2021, 4:15 PM
    Hi, I’d like to setup CI/CD using Pulumi GitHub Action, using branch-per-stack strategy. It’s not clear to me how can I map branch name to stack name? The problem is described by https://github.com/pulumi/actions/issues/89. Apparently, Pulumi CLI Action 
    v1
    supported this feature, while
    v2
    does not. What workarounds are you using?
    f
    e
    • 3
    • 3
  • m

    millions-nightfall-67118

    11/04/2021, 5:04 PM
    Hi there, I’m trying to understand how to Pull a image from the dockerhub registry and push it to the Google Registry. As I understood the docs
    new docker.Image()
    always needs to build the image - can’t I transfer the pulled one?
  • h

    high-vase-81611

    11/04/2021, 7:06 PM
    hi! there is a way to rename the resource inside a stack ?
    l
    • 2
    • 6
  • q

    quick-lifeguard-72252

    11/04/2021, 10:33 PM
    What is a fully qualified type token? I see this term mentioned here a few times https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#ComponentResource-constructor
    l
    • 2
    • 7
  • a

    abundant-book-94104

    11/05/2021, 12:33 AM
    Hi, I'm working to import our current cloud infra into Pulumi to put it under management. I've imported something into the wrong stack. As it's early in my work and it's one of the first things imported, might it be better to delete the stack "pulumi stack rm" and create new and start importing again?
    b
    • 2
    • 5
  • m

    microscopic-animal-41955

    11/05/2021, 2:29 AM
    Anyone else not able to load app.pulumi.com or make updates?
    • 1
    • 1
Powered by Linen
Title
m

microscopic-animal-41955

11/05/2021, 2:29 AM
Anyone else not able to load app.pulumi.com or make updates?
Now it seems to be working again
View count: 2