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

    alert-horse-34916

    06/15/2021, 10:40 AM
    Hello everyone! I want to create an AWS EKS cluster with calico cni plugin. Accoring to the calico tutorial I need to create a nodegroup using eksctl tool and the max-pods-per-node option to increase the pod limit. I've tried doing the same with pulumi but can't find the same option max-pods-per-node. Does anyone have any experience with this? Thanks in advance
    b
    s
    • 3
    • 6
  • i

    icy-jordan-58549

    06/15/2021, 1:41 PM
    crd2pulumi --nodejsPath=src/ crds/actions.summerwind.dev_horizontalrunnerautoscalers.yaml crds/actions.summerwind.dev_runnerreplicasets.yaml crds/actions.summerwind.dev_runnerdeployments.yaml --force && rm src/tsconfig.json && rm src/package.json
    panic: fatal: error An assertion has failed: could not parse Pulumi package. source error: could not import spec: binding types: failed to bind type kubernetes:actions.summerwind.dev/v1alpha1:RunnerReplicaSetSpecTemplateSpecInitContainers: unknown required property name
    
    goroutine 1 [running]:
    <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
            /Users/fed/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.9.2/go/common/util/contract/failfast.go:23
    b
    • 2
    • 5
  • b

    boundless-angle-56560

    06/15/2021, 2:06 PM
    Hi all, when working two resource providers (two AWS accounts), is there some better way (less boiler plate) to work with two resoure providers then having to pass ResourceOptions(provider=aws_acc) to every single resource I need in my pulumi program ?
    b
    b
    • 3
    • 5
  • n

    nice-airport-15607

    06/15/2021, 3:37 PM
    does pulumi have better examples of how to use, or work with inputs and outputs? Because the examples throughout this website are horrible demonstrations of how something should be done vs. how it works… As developers we can already see the code if we dig deep enough, but how about some real world examples. I enjoy using pulumi (when i know what im doing), but i really dread having to look something up in the pulumi docs to only find what i already know (what the code looks like)…. That being said, if you
    note
    things like
    During some program executions, apply doesn't run. For example, it won't run during a preview, when resource output values may be unknown. Therefore, you should avoid side-effects within the callbacks. For this reason, you should not allocate new resources inside of your callbacks either, as it could lead to pulumi preview being wrong.
    ☝️ then you should also show examples of what should be expected as an example of “how to do this” otherwise it’s kind of tiresome to
    pulumi up
    a bunch of times just to fail…
    b
    • 2
    • 2
  • a

    agreeable-eye-87399

    06/15/2021, 5:22 PM
    Hey Pulumi Community friends! I wanted to let you all know that we have launched GitHub Discussions for Pulumi! This is not a replacement for the Community Slack, but an alternate location for Pulumi questions, and should work as a longer term knowledgebase (given that messages in this Slack disappear relatively quickly). You should continue to use this Slack, of course, but Discussions is a great place to share questions (and also help answer questions from community members). We are working to populate Discussions with some common questions we see here in Slack, as well as migrate some existing issues in the repo that are more of the “question” variety. I encourage you to start using Discussions today! It is continued work in progress as we figure out the best setup for categories, etc, so I welcome your ideas in how we can make Discussions best serve all of you, our awesome community! You can check out Discussions here - https://github.com/pulumi/pulumi/discussions (it’s also a tab in the GH repo!)
    💜 1
    ⭐ 1
    👍🏼 1
    🎉 11
    b
    b
    • 3
    • 6
  • b

    brash-kite-78002

    06/15/2021, 6:28 PM
    Hello Everyone! I'm trying to figure out if a specific CRD exists in the cluster, and if it's not, deploy it. Otherwise, don't do anything. Is there any possibility to do it via Pulumi?
    f
    • 2
    • 3
  • b

    bumpy-summer-9075

    06/15/2021, 7:24 PM
    Out of curiosity, what is the
    --color raw
    option for?
  • b

    brash-flag-57291

    06/15/2021, 8:32 PM
    Hey everyone! Pulumi newbie here 👋 Does anybody know how I could add a lambda function to an existing API Gateway? My code so far is below. It's creating the function, but I'm getting an internal error when I try to curl it using the api gateway url. Looking at the AWS console my suspicion is that I need to add an API Gateway Trigger to the function but I couldn't figure out how to do that so far.
    const lambdaFunction = new aws.lambda.CallbackFunction("foo-function", {
      callback: handler,
      runtime: "nodejs14.x",
    })
    
    const apis = await aws.apigatewayv2.getApis({ name: "my-existing-api" })
    const apiId = apis.ids[0]
    const api = await aws.apigatewayv2.getApi({ apiId })
    
    const integration = new aws.apigatewayv2.Integration("foo-integration", {
      apiId: api.id,
      integrationType: "AWS_PROXY",
      integrationMethod: "POST",
      integrationUri: lambdaFunction.invokeArn,
    })
    
    const route = new aws.apigatewayv2.Route("foo-route", {
      apiId: api.id,
      routeKey: "POST /foo",
      target: pulumi.interpolate`integrations/${integration.id}`,
    })
  • s

    salmon-mechanic-4571

    06/16/2021, 12:07 PM
    Hi Pulumi guys Does anyone know if it's posible to use the custom "stack tags" directly in my index.ts file? I'm doing an Azure Stack writtin in Typescript and I would like to have three stacks in my project (dev, test, prod) but I need to somehow have the code made generic so I don't hard code my environment name in to the code but it's inserted based on which stack I deploy. I have difficultties finding an good exmaple of doing this, but I found the Stack Tag and made an custom tag called "Pulumi:environment" but I can't find examples of how to use these tags in the code? Any one with good examples?
    • 1
    • 1
  • b

    busy-honey-73811

    06/16/2021, 2:23 PM
    Is there a way to tell Pulumi to skip deleting some resources during destroy? I am looking for something like a “retention policy”, to tell Pulumi whether it should delete or retain (ignore) a resource on destroy.
    b
    s
    b
    • 4
    • 7
  • n

    nice-airport-15607

    06/16/2021, 3:31 PM
    I posted in #aws but this might be a global fix, so if anyone knows this would be awesome… https://pulumi-community.slack.com/archives/CRH5ENVDX/p1623857217214900
  • s

    sparse-tomato-5980

    06/16/2021, 3:36 PM
    hey folks, any updates on timeline for crosswalk/awsx for other languages? https://github.com/pulumi/pulumi-awsx/issues/308 not asking for firm dates or anything, more like: is it a matter of months or years 🙂
  • s

    sparse-tomato-5980

    06/16/2021, 3:36 PM
    (though I guess this might be more of an #aws thing, woops)
  • m

    millions-umbrella-34765

    06/16/2021, 5:33 PM
    When we started with Pulumi, we start by using it for Route53, so we have a project that manages the DNS records for the domain, i.e. example.com. This is convenient as you can see/update all the DNS from one file/project. Now we are creating another project to provision a Cloudfront site. The site needs to be attached to a sub-domain, i.e. foo.example.com. We thought it would be good if that project could attach the foo.example.com to Cloudfront. But then the Route53 project would not see this domain (and would delete it on running ` pulumi up). I suppose I could keep all DNS changes in the Route 53 project. So you would need to run both projects to attach foo.example.com to Cloudfront. Or is there another approach so the Cloudfront project can manage the foo.example.com yet Route53 also see this domain?
    c
    l
    • 3
    • 3
  • c

    cuddly-leather-18640

    06/16/2021, 7:17 PM
    it seems that the
    cache-from
    feature of the pulumi docker go implementation is broken: https://github.com/pulumi/pulumi-docker/issues/238 I can hack around this by: 1. pulling the image I want to use as a cache 2. manually running
    docker build --cache-from my-image
    3. executing `pulumi preview`/`pulumi up` My intuition tells me that the manual
    docker build
    step should populate the layer cache and therefore speed up the pulumi commands which build the docker image but I’m finding that even with this workflow pulumi recreates the docker image from scratch. Is my intuition incorrect? If so how? Is there another way I can hack around the current bug with cache-from in the go implementation?
    b
    • 2
    • 10
  • o

    orange-byte-86458

    06/17/2021, 4:59 AM
    Hi, Pulumi users! Has anyone here used the
    pulumi state delete
    command successfully? I need to fix a broken stack but every time I try to delete something by URN it tells me this resource doesn’t exist. What am I doing wrong here (see attached screenshot)? Thanks!
    b
    • 2
    • 3
  • t

    tall-beard-99429

    06/17/2021, 9:28 AM
    If i have some state being managed in a loop, how can I export that to be handled in a different stack in typescript?
    b
    • 2
    • 1
  • h

    helpful-morning-53046

    06/17/2021, 10:59 AM
    Hello! Not sure of the best place to post this so please advise if there is a better channel. I am importing some manually created AWS resources and the command is successful but the generated pulumi code results in a delete and replace action when running
    pulumi preview
    . It fails to delete due to deletion protection luckily. I can't seem to find a way around it as the cause is not reported, just a failed message as below.
    aws:ec2:LaunchConfiguration (ecs-cluster-test):
        error: Preview failed: refusing to delete protected resource 'urn:pulumi:orchestration-infrastructure::orchestration-infrastructure::aws:ec2/launchConfiguration:LaunchConfiguration::ecs-cluster-test'
    Has anyone else come across this before or know how to work around it?
    • 1
    • 1
  • b

    bored-continent-69206

    06/17/2021, 12:21 PM
    quick question, when I create a CodeBuild project with source type "NO_SOURCE" I can not provide a buildspec file. Is there a possibility to make this "inline" like the AWS cdk does? Or simply asked: how do I provide commands to my CodeBuild project without a source / buildspec.yml? Thank you very much
    👀 1
  • f

    fierce-angle-25551

    06/17/2021, 2:20 PM
    I am getting this: " warning: provider config warning: Deprecated Attribute" How can I tell what attribute is depricated?
  • r

    ripe-oil-46657

    06/17/2021, 3:15 PM
    Hi Pulumi community! quick question: is there a way to implement the
    helm3 --create-namespace
    argument in the
    helm.NewChart
    function in Go? I would like to create a new namespace as part of the chart deployment.
    b
    b
    • 3
    • 5
  • c

    cuddly-leather-18640

    06/17/2021, 3:38 PM
    I’m using Pulumi to manage kubernetes deployments. One of my pods runs a process that should emit a message like
    {"Namespace":"default","Signal":"terminated","TaskQueue":"main-task-queue","WorkerID":"34276@Paymahns-Air@","level":"error","msg":"Worker has been stopped.","time":"2021-06-17T10:33:39-05:00"}
    (notice the
    Signal
    field) when it receives a SIGTERM or SIGINT. I’ve noticed that when I perform
    pulumi up
    (with a new docker image) the pod gets killed without ever emitting the above log message which suggests to me that the pod is getting a SIGKILL without having the option to shutdown gracefully. Is this how
    pulumi up
    is intended to behave? Do I have something misconfigured? Is there another explanation?
    b
    • 2
    • 6
  • b

    bumpy-summer-9075

    06/17/2021, 7:35 PM
    Has anyone here used Pulumi with pnpm? I have both
    ts-node
    and
    typescript
    in my dependencies (they're in my
    node_modules
    folder), but Pulumi throws
    error: Error: Cannot find module 'typescript'
    which is driving me crazy.
  • p

    purple-lawyer-35555

    06/18/2021, 9:17 AM
    Hi all! I'm using the Pulumi Automation API and I would like to let the users to have or not its configuration in his Pulumi.stackName.yaml_._ I would like to run his stack with AWS, but I found a little misleading accessing the aws config as there are multiple sources of truth (aws.Provider, stack Yaml Config and environment variables). Example1: If I want to access the region from within a custom ComponentResource, I can only get these variables if they are previously defined with
    setConfig('aws:region', {value: 'myValue'})
    aws.config.region or aws.getRegion() // in this way I can somehow obtain the configuration
    // also with const awsConfigRegion = new pulumi.Config('aws').get('region')
    Example2: If I do not have them defined with setConfig/yaml file but in aws.Provider and pass this provider to my CustomResource, I haven't found a clear way to access these values_._
    // file1.ts
    const awsProvider = new aws.Provider(
        'aws-provider',
        {region: 'eu-west-1', profile: 'some-profile'}
      )
      
    const myCustomResource = new MyCustomComponentResource(
        {},
        { provider: awsProvider, parent: awsProvider }
    )
    
    // file2.ts
    export class MyCustomComponentResource extends pulumi.ComponentResource{
        constructor(
            args: {},
            opts?: pulumi.ComponentResourceOptions | undefined
          ) {
            super('resource-type', 'resource-name', {}, opts)
            // how to correctly access here the parent provider config if setConfig has not been called?
            // I could pass here the aws provider config as an argument, but it doesn't seem like the intended way to access these values
          }
    }
    b
    • 2
    • 7
  • b

    billowy-army-68599

    06/18/2021, 10:01 AM
    https://pulumi-community.slack.com/archives/CB36DSVSA/p1624010507058200
    👍 1
  • b

    bored-activity-40468

    06/18/2021, 12:58 PM
    Can the
    register_stack_transformation
    regardless of language be used to change the resource's name? I'm guessing no but want to verify.
  • b

    brash-kite-78002

    06/18/2021, 1:45 PM
    Hello Everyone! Is there any way to obtain kubeconfig from Pulumi in the code? I want to make an API call to an EKS server while Pulumi is running, but I need a kubeconfig for that. I've tried to get it from 'cluster.kubeconfig', but haven't succeeded.
    b
    • 2
    • 2
  • f

    full-island-88669

    06/18/2021, 2:32 PM
    Hi! I'm having issue using Pulumi Python package in Bitbucket Pipelines:
    ERROR: Could not find a version that satisfies the requirement grpcio==1.38.0
    But locally, there is no such problem
  • b

    bright-stone-12333

    06/18/2021, 6:32 PM
    Hi all! I am using the pulumi azure-native python sdk. I need to move resources (storage account, cosmosdb account, appservice) in one resource_group to a different resource_group/subscription. I see azure_native.migrate.MoveResource I am unclear from the documentation if that would accomplish what I need to? Any input and/or examples would be appreciated. All the azure resources were created using pulumi.
  • f

    freezing-sugar-4269

    06/18/2021, 8:30 PM
    Hi, anyone can point me to a github example, blogpost, online training where the following or part of the following gets done with pulumi? Cloud: AWS Creating: 1. a SSL certificate, 2. cloudfront distribution using the previously created certificate, 3. creating multiple origins for the cloudfront distribution, 4. multiple behaviors in the cloud distribution, 5. creating lambda@edge functions and assign them to be triggered by the behaviors of the distribution. I know how to do all that manually with clicks but now I am trying to learn how to do automate it with pulumi. My background is in Software Development with C#, Javascript/Typescript. As I mentioned, just looking for resources I can read so I can do my home work putting everything together. Thank you very much. (P.D. It is ok if I repeat this question in the #aws channel? )
    f
    • 2
    • 3
Powered by Linen
Title
f

freezing-sugar-4269

06/18/2021, 8:30 PM
Hi, anyone can point me to a github example, blogpost, online training where the following or part of the following gets done with pulumi? Cloud: AWS Creating: 1. a SSL certificate, 2. cloudfront distribution using the previously created certificate, 3. creating multiple origins for the cloudfront distribution, 4. multiple behaviors in the cloud distribution, 5. creating lambda@edge functions and assign them to be triggered by the behaviors of the distribution. I know how to do all that manually with clicks but now I am trying to learn how to do automate it with pulumi. My background is in Software Development with C#, Javascript/Typescript. As I mentioned, just looking for resources I can read so I can do my home work putting everything together. Thank you very much. (P.D. It is ok if I repeat this question in the #aws channel? )
f

faint-table-42725

06/19/2021, 1:52 AM
https://github.com/pulumi/docs/tree/master/infrastructure might be of interest to you — this is actually how www.pulumi.com itself is built
I think the only missing part is cert creation/validation, which https://github.com/pulumi/examples/tree/master/aws-ts-static-website covers
👀 1
f

freezing-sugar-4269

06/19/2021, 3:58 AM
thank you!
View count: 1