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

    big-state-95297

    02/16/2021, 12:10 AM
    Hello - I'm getting the following error when running `pulumi preview`:
    pulumi:pulumi:Stack (eks-dev):
        error: program failed: missing one or more required arguments
        exit status 1
    
        error: an unhandled error occurred: program exited with non-zero exit code: 1
    This is happening after I added the following to my eks cluster setup project:
    oidcUrl := eksCluster.Core.OidcProvider().ApplyT(func(oidc *iam.OpenIdConnectProvider) pulumi.StringOutput { return oidc.Url })
    ctx.Export("oidcUrl", oidcUrl)
    eksCluster
    is defined before as:
    eksCluster, err := eks.NewCluster(ctx, "eks-cluster", &eks.ClusterArgs{
    			VpcId:                  pulumi.String(defaultVpc.Id),
    			SubnetIds:              toPulumiStringArray(subnet.Ids),
    			InstanceType:           pulumi.String("t2.medium"),
    			DesiredCapacity:        <http://pulumi.Int|pulumi.Int>(1),
    			MaxSize:                <http://pulumi.Int|pulumi.Int>(1),
    			MinSize:                <http://pulumi.Int|pulumi.Int>(1),
    			EncryptionConfigKeyArn: key.Arn,
    			CreateOidcProvider:     pulumi.Bool(true),
    		})
    When I run the command with
    --verbose 6
    , the logs show:
    pulumi:pulumi:Stack  eks-dev  running..   error: program failed: missing one or more required arguments
    I0215 16:57:18.681283   66724 eventsink.go:78] eventSink::Infoerr(<{%reset%}>exit status 1
         pulumi:pulumi:Stack  eks-dev  running..   exit status 1
    I0215 16:57:18.700585   66724 source_eval.go:178] EvalSourceIterator ended with an error: an unhandled error occurred: program exited with non-zero exit code: 1
    How can I debug this further?
    b
    • 2
    • 2
  • c

    curved-pharmacist-41509

    02/16/2021, 3:31 AM
    unhandled rejection: CONTEXT(11151): resource:news-perthnow-dev-curation-app-task[aws:ecs/taskDefinition:TaskDefinition]
        STACK_TRACE:
        Error
            at Object.debuggablePromise (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
            at Object.registerResource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/runtime/resource.js:219:18)
            at new Resource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/resource.js:215:24)
            at new CustomResource (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/pulumi/resource.js:307:9)
            at new TaskDefinition (/Users/jakeginnivan/_code/news-mono/node_modules/@pulumi/ecs/taskDefinition.ts:209:9)
            at new FargateApplication (/Users/jakeginnivan/_code/news-mono/dist/apps/infrastructure/webpack:/libs/pulumi-resources/src/lib/fargate-application.ts:308:22)
            at new CurationApi (/Users/jakeginnivan/_code/news-mono/dist/apps/infrastructure/webpack:/libs/pulumi-resources/src/lib/curation.ts:206:29
    Having a lot of trouble tracking down what is causing this, any pointers?
  • f

    fierce-engine-31599

    02/16/2021, 7:58 AM
    Hey! Do you have any working examples of deploying to AppEngine? I keep getting error code 13
  • e

    echoing-activity-32278

    02/16/2021, 9:21 AM
    Say I want to know all the available region names of do. Directly running with do.get_regions() gives an error:RunError: Program run without the Pulumi engine available; re-run using the
    pulumi
    CLI
    b
    • 2
    • 17
  • b

    bland-salesclerk-63112

    02/16/2021, 10:11 AM
    Hi guys! I encounter issue with Pulumi and I need some help. I'm trying to work with Resource indirectly created while running a stack. When creating a GCP Functions triggered by a PubSub topic, it will create a subscription for that function and topic (named gcf-<function name>-<region name>-<topic>). I want to modify that subscription to have a DLQ, but: • If I try to create the resource, it will fail as it will be created when Pulumi will create the function • If I try to import the resource, it will fail as the resource won't exist when "planning" Any clues on how to do it the proper way? Thanks in advance 😄
  • v

    victorious-sugar-42620

    02/16/2021, 11:25 AM
    Guys, is there a maximum of stacks I can have with the free acount?
    g
    • 2
    • 1
  • d

    dry-football-2639

    02/16/2021, 11:30 AM
    All the sudden, my TS program started leaking promises. Pretty sure I'm awaiting things properly, let alone it worked just a few hours ago. Network issue?:
    The Pulumi runtime detected that 5485 promises were still active
    
    at the time that the process exited. There are a few ways that this can occur:
    
      * Not using `await` or `.then` on a Promise returned from a Pulumi API
    
      * Introducing a cyclic dependency between two Pulumi Resources
    
      * A bug in the Pulumi Runtime
    
    Leaving promises active is probably not what you want. If you are unsure about
    
    why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
    
    environment variable. The Pulumi runtime will then print out additional
    
    debug information about the leaked promises.
    l
    • 2
    • 2
  • i

    icy-jordan-58549

    02/16/2021, 2:39 PM
    Hey, team! Can someone take a look at this issue https://github.com/pulumi/get.pulumi.com/pull/75? There is no way to set pulumi use different folder, by knowing that we can’t use cache for CircleCI which introduces several $100s for last quarter increase for our CI pipelines. That’s become very hot for us (we have yr paid plan with pulumi)
    b
    • 2
    • 7
  • l

    lemon-machine-35564

    02/16/2021, 4:43 PM
    Hey y’all - I have a relatively simple TypeScript project that has a Lambda function defined in it, but when I do
    preview
    or
    up
    the Lambda does not show up at all. Anyone run into this?
    b
    • 2
    • 8
  • g

    gentle-monitor-55086

    02/16/2021, 7:25 PM
    I've got a really simple api gateway deployment going that's causing me some strife. I'm needing to go into the Resource definition and re-saving the lambda route in the method for the gateway to have the permissions to execute the lambda, details in comment.
    • 1
    • 3
  • f

    flat-insurance-25294

    02/16/2021, 9:28 PM
    What happens if I got a pulimi setup, say
    index.ts
    Where I define RDS, VPC, EKS, Pods/Services and etc. I run Pulumi Up on it. And some time later, I run Pulumi Up again but this time, I’ve commented out RDS, VPC, but still got EKS and K8 stuff. Will Pulumi tear things down? The reason I ask, is because I am worried about bugs on Pulimi side of things. I like the idea of always having the state of the infra being pushed WITH the app and Pulumi doing changes if it see’s any, but I have been entertaining the notion of having the state of infra to be omitted, and just have the the EKS and K8 Manifests as part of Pulumi. This would be like env variable that toggles what part of
    index.ts
    it should run.
    l
    • 2
    • 17
  • s

    stocky-student-96739

    02/16/2021, 10:15 PM
    Something terrible happening in Pulumi back-end infrastructure? Our Org has vanished from pulumi.com all of a sudden.
    b
    q
    +3
    • 6
    • 17
  • f

    flat-insurance-25294

    02/16/2021, 10:19 PM
    @little-cartoon-10569 Btw, is there a way to split a project/stack into two: infra/stack & code/stack without pulumi deleting everything?
    l
    • 2
    • 4
  • s

    sparse-state-34229

    02/17/2021, 8:37 AM
    is it possible to import `ComponentResource`s? eg I have a hierarchy like this:
    ├─ hatch:group_policy:GroupPolicy                                manage-self-main
        │  │  URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy::manage-self-main
        │  ├─ hatch:group:Group                                          manage-self
        │  │  │  URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:group:Group::manage-self
        │  │  └─ aws:iam/group:Group                                     manage-self
        │  │        URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:group:Group$aws:iam/group:Group::manage-self
        │  ├─ hatch:policy:Policy                                        manage-self-main
        │  │  │  URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:policy:Policy::manage-self-main
        │  │  └─ aws:iam/policy:Policy                                   manage-self
        │  │        URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$hatch:policy:Policy$aws:iam/policy:Policy::manage-self
        │  └─ aws:iam/groupPolicyAttachment:GroupPolicyAttachment        manage-self
        │        URN: urn:pulumi:main::account::hatch:group_policy:GroupPolicy$aws:iam/groupPolicyAttachment:GroupPolicyAttachment::manage-self
    and I need to be able to import the AWS resources’ parents to maintain the relationship
    l
    • 2
    • 11
  • j

    jolly-bear-34819

    02/17/2021, 10:42 AM
    Hey, I'm currently trying to create a template for
    pulumi new
    on Azure DevOps. When I run
    pulumi new https://<org>@dev.azure.com/<org>/....
    I always get "error: repository not found". Running
    git clone
    with this URL works fine. Is Azure DevOps not supported? Does anyone have experience with hosting a template on Azure DevOps?
    b
    • 2
    • 9
  • c

    chilly-hospital-92934

    02/17/2021, 1:59 PM
    Hello, I'm trying to take output from terraform and basing on it in next part:
    import pulumi_terraform as terraform
    network_state = terraform.state.RemoteStateReference('network',
        backend_type='local',
        args=terraform.state.LocalBackendArgs(path='terraform.tfstate'))
    
    output_map = network_state.get_output('output_map')
    then I would like to base on output_map in loop:
    for key, properties in output_map.items():
        pulumi_provider1(properties['value1'])
        pulumi_provider2(properties['value2'])
        ...
    but it's not possible because output_map is a object.
    TypeError: 'Output' object is not callable
    I have seen https://www.pulumi.com/docs/guides/adopting/from_terraform/#referencing-terraform-state but here is only the basic usage of output values. It is possible to convert this object to dict or something like that?
    b
    s
    • 3
    • 8
  • a

    adamant-translator-31969

    02/17/2021, 4:42 PM
    Hi!!! I have this error when I do npm run link using custom resource :
    Error: invocation of aws:rds/getEngineVersion:getEngineVersion returned an error: 1 error occurred:
            * error configuring Terraform AWS Provider: Error creating AWS session: SharedConfigErr: only one credential type may be specified per profile: source profile, credential source, credential process, web identity token, or sso
    r
    • 2
    • 4
  • e

    early-motorcycle-69706

    02/17/2021, 6:22 PM
    HI - I'm using the Kustomize Directory and if I use a generator that calls the HelmChartInflator the following exception is thrown:
    panic: runtime error: invalid memory address or nil pointer dereference
        [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x19d07fb]
    ....
     Exception: invocation of kubernetes:kustomize:directory returned an error: transport is closing
    Running with
    kuztomize
    works fine.
  • e

    early-motorcycle-69706

    02/17/2021, 6:35 PM
    Another thing...in this example https://www.pulumi.com/blog/easily-create-and-manage-aws-eks-kubernetes-clusters-with-pulumi/
    cluster.kubeconfig
    and
    cluster.provider
    don't work. Is there updated docs? Note: I am doing this with gcp and not aws. I guess I'm wondering what the equivalent is for
    gcp.container.Cluster
  • c

    clever-plumber-29709

    02/17/2021, 6:49 PM
    Is there an rss feed for the blog post? or any way to be notified on new blog posts?
    m
    • 2
    • 1
  • b

    bored-oyster-3147

    02/17/2021, 6:51 PM
    can someone point me in the right direction for your
    Pulumi.Stack
    implementation to take in an
    Input
    ? This is separate from
    config
    because this is a value that will be different everytime
    up
    is called in our CI/CD (it is a build number)
    s
    • 2
    • 13
  • g

    gentle-monitor-55086

    02/17/2021, 9:37 PM
    I'm trying to destroy a stack with a gateway and some lambdas and it seems like pulumi is trying to destroy the aws:iam:policies for the lambdas first and encountering "DeleteConflict: Cannot delete a policy attached to entities." What's the work around here that doesn't involve me having to go hand delete everything? (im actually trying to move the api-gateway to a new region by handing the gateway a provider in a different region from where its deployed.)
    l
    • 2
    • 23
  • p

    proud-hair-78501

    02/17/2021, 11:44 PM
    Does anyone have any nice blog posts etc covering how they’ve used Pulumi at their org? We have a few services (with more coming) which are currently helm charts we deploy with helm onto a cluster provisioned by Pulumi. I can’t decide if it makes most sense to bring those into the existing pulumi stack, or if I should have a seperate pulumi per service which has cross-stack referneces to the main infra stack for getting the kubecontext etc
  • p

    proud-hair-78501

    02/17/2021, 11:45 PM
    I’m leaning towards having them seperate, because it feels more sane to only “pulumi up” the stack of the service we are deploying when we do a release, versus having to Pulumi up a potentially extremely large stack
    b
    b
    m
    • 4
    • 13
  • b

    brash-terabyte-57605

    02/18/2021, 2:46 AM
    Hoe does tf2pulumi work with modules (if at all)?
  • s

    shy-football-10348

    02/18/2021, 3:36 AM
    have y’all considered abstracting IAM for pulumi in the same way CDK does it? for example, in CDK you can simply specify “read permissions” and it will generate the appropriate iam actions for the specified resource. maybe a crosswalk feature?
    d
    • 2
    • 2
  • s

    straight-cartoon-24485

    02/18/2021, 4:44 AM
    How can I reason about the relationship between Pulumi and the Operator Lifecycle Manger and https://operatorhub.io/? (Helm, for example, seems to get in the way of "the Pulumi way" as it hides complexity behind "values") I understand that I might be able to install the OLM via Pulumi, e.g.: https://gist.github.com/offlinehacker/856b64ec5ad5ab3829bf01f1fb29958d - ok, that should be helpful in and of itself. Wouldn't it then make sense to use Pulumi to ask the OLM to install things? Not sure what to search for in the docs to see how this could work. Might be a day 1 vs. day 2 type of dichotomy; maybe I'm not understanding the Pulumi philosophy yet? 🤣
    g
    • 2
    • 2
  • a

    ambitious-optician-69807

    02/18/2021, 8:25 AM
    Just tried Pulumi for the last 30 minutes. Want to share my experience and thoughts. Also hope someone can check if I missed/mis-understood anything
  • a

    ambitious-optician-69807

    02/18/2021, 8:27 AM
    Overall, the tutorial is very good, I used AWS and was able to follow the instructions smoothly. Kudos
  • a

    ambitious-optician-69807

    02/18/2021, 8:32 AM
    At first, I am confused why
    pulumi new aws-typescript
    required me to login. After read a little about project and stack, my understanding is that I’m uploading data to pulumi.com in order to use the tool. I don’t understand why. I’m using aws cdk now. It is a pure tool. So Pulumi is a service?
    r
    b
    • 3
    • 3
Powered by Linen
Title
a

ambitious-optician-69807

02/18/2021, 8:32 AM
At first, I am confused why
pulumi new aws-typescript
required me to login. After read a little about project and stack, my understanding is that I’m uploading data to pulumi.com in order to use the tool. I don’t understand why. I’m using aws cdk now. It is a pure tool. So Pulumi is a service?
r

red-football-97286

02/18/2021, 9:48 AM
Hi Gordon, so to quote the Pulumi docs on this they state,
To use Pulumi without pulumi.com, log in using 
pulumi login --local
 or by logging in to an alternative backend.
Bit more info here, https://www.pulumi.com/docs/intro/concepts/state/.
b

brave-planet-10645

02/18/2021, 9:57 AM
Just to follow on from what Graham said: Out of the box we have a service that we run to store your state. It also provides a locking solution so that you can't run concurrent updates. If you don't want to use that, you can use one of the backends that are on the page that Graham suggested, but you won't get the same locking, nor will you get the RBAC controls amongst other things
a

ambitious-optician-69807

02/18/2021, 5:32 PM
Thank you guys!
View count: 1