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

    elegant-carpet-8859

    11/25/2020, 10:55 PM
    I have looked at the IETF spec but different places use slightly different phrasing, so I want to make sure I have the right ones.
  • e

    elegant-carpet-8859

    11/25/2020, 10:59 PM
    ahhhhh it's based on the Terraform ones
  • e

    elegant-carpet-8859

    11/25/2020, 10:59 PM
    https://github.com/hashicorp/terraform-provider-tls/blob/9fd13b802b14b144d64bb2e5b248b823c15b8767/website/docs/r/locally_signed_cert.html.md
  • b

    breezy-butcher-78604

    11/26/2020, 2:46 AM
    is it possible to perform
    pulumi preview
    without having to provide cloud provider credentials? I keep getting an error but given it's just comparing the new state to the existing state stored in Pulumi, surely it shouldn't need any cloud provider creds?
    l
    • 2
    • 21
  • w

    white-pencil-38837

    11/26/2020, 12:26 PM
    Hi was using this guide for adding crd for cert-manager: https://www.pulumi.com/blog/introducing-crd2pulumi/ when adding this line,I get CertificateDefinition does not exists, anyone can help with this issue? Thanks
    // Register the Certificate CRD.
    new certificates.certmanager.CertificateDefinition("certificate");
  • w

    white-pencil-38837

    11/26/2020, 12:27 PM
    .
  • t

    tall-jackal-67163

    11/26/2020, 12:27 PM
    hi, I'm trying to delete a GCP Cloud SQL Instance but I get this error message:
    Error, failed to delete instance because deletion_protection is set to true. Set it to false to proceed with instance deletion
    . Unfortunately, I can't find where I can set that. I tried setting the
    protected=False
    in the ResourceOptions but that does not work either.
    l
    • 2
    • 16
  • w

    wet-noon-14291

    11/26/2020, 10:33 PM
    How long time is
    change-secrets-provider
    suppose to take?
    b
    t
    • 3
    • 15
  • d

    dazzling-sundown-39670

    11/27/2020, 6:59 PM
    Is it possible to get the Pulumi update number (seen at app.pulumi.com) when running
    pulumi up
    ?
    n
    • 2
    • 4
  • a

    ancient-boots-22113

    11/28/2020, 8:27 AM
    Hi, what is Pulumi’s policy on building commercial products on top of its engine? Specifically, a commercial provider plugin and a UI that automates Pulumi’s cli.
    b
    • 2
    • 4
  • e

    eager-lion-7694

    11/29/2020, 3:24 PM
    hello, i have a pulumi project with a react app that has been deployed as a static website to S3 + Cloudflare. I'm trying to figure out the best way to manage ENV vars for the react app (i.e. make Server URL available to the react app). Are there any examples to help me accomplish that?
    ✅ 1
    t
    • 2
    • 5
  • g

    gifted-island-55702

    11/30/2020, 12:41 PM
    Hi. Is there an equivalent of https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file in Pulumi or is there an example how to achieve a similar result? (a local file created as a resource)
    b
    • 2
    • 7
  • b

    bored-intern-60856

    11/30/2020, 5:00 PM
    Hey guys, I'm getting a
    Diagnostics:
      pulumi:pulumi:Stack (#####):
        error: an unhandled error occurred: Program exited with non-zero exit code: -1
    Arbitrarily. Is this regarding my code or has anyone else had it?
  • n

    narrow-area-20379

    11/30/2020, 8:03 PM
    If I have a
    ComponentResource
    in a separate package or folder, how can I reference a file from that folder using
    pulumi.asset.FileAsset
    ? When I run it the path is done relative to where the ComponentResource is called but the asset it needs are inside the ComponentResource directory.
    • 1
    • 1
  • e

    eager-lion-7694

    11/30/2020, 8:42 PM
    what’s best practice for consistency in dev and prod envs for executing lambda APIs?
    ✅ 1
    b
    w
    • 3
    • 11
  • w

    worried-wall-60272

    11/30/2020, 9:53 PM
    is
    tf2pulumi --target-language go
    working/supported?
    b
    • 2
    • 13
  • e

    eager-lion-7694

    11/30/2020, 10:15 PM
    if i create two separate API services, is there a way that both services can get Env Vars set to the other’s endpoint?
    f
    • 2
    • 3
  • a

    ancient-boots-22113

    12/01/2020, 8:11 AM
    Hi! Is it possible to dynamically import an existing resource? For example I want to import an existing resource if one with a certain display name exists? I’m writing a custom dynamic provider and would like to make it auto import an existing resource if one with a matching name exists. Thanks!
    w
    • 2
    • 8
  • q

    quaint-translator-50744

    12/01/2020, 1:18 PM
    Hi everyone! Have just started using Pulumi and I really like it. Thanks for creating it! Although there are already so many great tutorials, I was missing (or could not find) one that was covering one of my simplest use cases: https://twissmueller.medium.com/first-steps-with-pulumi-e6025eecece4 Hope this is useful to anyone. Any feedback is highly appreciated.
    b
    • 2
    • 2
  • r

    red-lighter-44012

    12/01/2020, 2:09 PM
    Im pretty happy with provisioning DB server and databases with Pulumi. But I was wondering if I can (or should) also create the DB users that are to use said databases (and configured in backend applications). Or do you go back to plain SQL for that?
    b
    • 2
    • 16
  • b

    bitter-application-91815

    12/01/2020, 3:37 PM
    hey there, is there a way to force pulumi to delete rds/elasticache clusters on a destroy regardless of whether stuff is backed up or not
    b
    • 2
    • 6
  • a

    astonishing-quill-88807

    12/01/2020, 3:59 PM
    I'm trying to use the Vault provider and create a Policy object. It looks like it currently only supports an HCL formatted string, despite Vault being able to handle the equivalent JSON. I found this issue (https://github.com/pulumi/pulumi-vault/issues/10) asking about supporting an object (or even a JSON formatted string). Does anyone have pointers on steps to add that capability?
    g
    • 2
    • 2
  • b

    bitter-application-91815

    12/01/2020, 6:47 PM
    hey guys, I'm having issues tearing down a vpc, the internet gateway times out and i think it has something to do with dependency chains re Elastic ips and routetables. Is there any example anywhere as to how it should be chained together
    b
    w
    • 3
    • 16
  • c

    calm-parrot-72437

    12/02/2020, 12:59 AM
    Pulumi throwing an error when updating one of my kubernetes stacks: error: could not load plugin for kubernetes provider 'urn😛ulumi:stage:😛od-autoscaler:😛ulumi:providers:kubernetes::default_2_5_0': failed to load plugin /home/shaw/.pulumi/plugins/resource-kubernetes-v2.5.0/pulumi-resource-kubernetes: plugin not found  master  pod-autoscaler  pulumi plugin ls NAME KIND VERSION SIZE INSTALLED LAST USED aws resource 3.16.0 252 MB n/a 8 minutes ago aws resource 3.1.0 235 MB n/a 27 minutes ago docker resource 2.3.0 46 MB n/a 27 minutes ago kubernetes resource 2.7.2 79 MB n/a 7 minutes ago kubernetes resource 2.6.2 78 MB n/a 27 minutes ago kubernetes resource 2.5.0 66 MB n/a 24 minutes ago TOTAL plugin cache size: 756 MB any ideas?
    • 1
    • 1
  • e

    eager-lion-7694

    12/02/2020, 1:21 AM
    running
    pulumi up
    gives me this error after ~10 minutes:
    error waiting for service (service arn) to reach a steady state: ResourceNotReady: exceeded wait attempts
    how can I debug why its taking so long? the Fargate service does seem available via the public endpoint so not sure if this is waiting for the right signal.
    b
    c
    • 3
    • 2
  • n

    narrow-area-20379

    12/02/2020, 7:26 AM
    Why is an
    apply
    callback called during preview when the value is not available? Is this broken functionality?
    To access the raw value of an output, and transform that value into a new value, use apply . This method accepts a callback that will be eventually invoked with the raw value, once it is available.
  • d

    dazzling-sundown-39670

    12/02/2020, 8:37 AM
    Why can't I do the following in my Github action?
    - uses: <docker://pulumi/actions>
      with:
        args: preview --stack Safira/sandbox
    It tells me
    No stack configured for branch 'refs/pull/698/merge'
    but I don't want that stack associated with a certain branch, I'm running it on a trigger word in pull requests.
    c
    • 2
    • 2
  • s

    steep-angle-29984

    12/02/2020, 10:56 AM
    Hello everyone, I want to get some feedback about performance from other pulumi users. I've already split my project into several Pulumi projects, but I've come to a point now where it would be very time consuming for me to divide it up further. For example, one of my Pulumi projects has 206 resources, mostly Kubernetes resources, some ComponentResources, and some dynamic resource providers. A 'pulumi up' takes 7-8 minutes even if nothing has changed. (Interestingly, when the command is finished, a "Duration" is output which is only half of that.) Opening the Pulumi web console overview page of that stack takes 20 seconds and switching to resource page takes another 20 seconds. Is that what I should expect from projects of this size? (Performance command line/web console) What experiences do you have with the project size and the resulting performance? What would you say is the max. number of resources per project that can be managed fluently? If you split your resources across many smaller projects, how do you handle dependencies and updates that affect other projects? BTW: I'm using typescript here, but I think at least the performance of the web console doesn't depend on the implementation language.
    d
    • 2
    • 2
  • b

    boundless-library-86481

    12/02/2020, 11:34 AM
    Hi, I'm trying to create an Azure web app for containers using the following code:
    this.linuxAppServicePlan = new azure_nextgen.web.latest.AppServicePlan(
          name,
          {
            name: name,
            kind: "linux",
            location: this.resourceGroup.location,
            resourceGroupName: this.resourceGroup.name,
            sku: {
              name: "B1",
              tier: "Basic",
              size: "B1",
            },
          }
        );
    
        this.webApp = new azure_nextgen.web.latest.WebApp(name, {
          name: name,
          kind: "app,linux,container",
          serverFarmId: this.linuxAppServicePlan.id,
          location: this.resourceGroup.location,
          resourceGroupName: this.resourceGroup.name,
          httpsOnly: true,
        });
    I created these resources in the portal first to take a look to the ARM template. The key element seems to be the
    kind
    as
    linux
    for the service plan and
    app,linux,container
    for the web app. However, Pulumi seems to be creating a windows app plan and a standard web app. Do you have an idea of what could be wrong?
    p
    • 2
    • 9
  • c

    cuddly-smartphone-15267

    12/02/2020, 11:34 AM
    Hey guys, I wanted to check whether this is a valid use case for Pulumi or not (and if you have any tips on how to go about it) .. In my company, we have lots of projects being tested and we'd like to be able to spin up a new test environment per project and then just tear it down once it's done.. the environments would generally be the same (several databases, a couple of app servers, a redis instance, an SSL certificate and hostname plus a load balancer). I'm in the process of setting up my first pulumi 'stack' but i'm wondering what the next step, once that's done, to be able to 'reuse' that stack for each new test environment that we need to stand up?
    b
    b
    • 3
    • 24
Powered by Linen
Title
c

cuddly-smartphone-15267

12/02/2020, 11:34 AM
Hey guys, I wanted to check whether this is a valid use case for Pulumi or not (and if you have any tips on how to go about it) .. In my company, we have lots of projects being tested and we'd like to be able to spin up a new test environment per project and then just tear it down once it's done.. the environments would generally be the same (several databases, a couple of app servers, a redis instance, an SSL certificate and hostname plus a load balancer). I'm in the process of setting up my first pulumi 'stack' but i'm wondering what the next step, once that's done, to be able to 'reuse' that stack for each new test environment that we need to stand up?
b

brave-planet-10645

12/02/2020, 11:38 AM
Sounds like a good use for our
ComponentResource
model: https://www.pulumi.com/docs/intro/concepts/programming-model/#authoring-a-new-component Don't forget that you can share these (and a lot of the code you write) in the same way you'd share other such libraries: npm, nuget, pip etc
c

cuddly-smartphone-15267

12/02/2020, 11:56 AM
Thanks Piers.. would the general strategy be to create a new 'stack' for each environment then? and effectively put the 'reusable' template stuff into a component?
b

broad-dog-22463

12/02/2020, 12:26 PM
@cuddly-smartphone-15267 Yeah a "stack" is just a representation of the state and config for a collection of resources so a stack per env or even a stack per developer is the general use here
I have seen people using a stack per customer tenant as well but YMMV
c

cuddly-smartphone-15267

12/02/2020, 12:40 PM
ok, thanks Paul... makes sense, cheers. would we need a separate little 'program' per stack? in .net , it generally goes
class Program
{
    static Task<int> Main() => Deployment.RunAsync<MyStack>();
}
b

broad-dog-22463

12/02/2020, 12:47 PM
nope - MyStack is a generic class used so dev1 stack will use MyStack, dev2 stack will use MyStack
MyStack probably should be named MyProject
c

cuddly-smartphone-15267

12/03/2020, 12:33 PM
So let’s say we renamed MyStack to MyProject. how would dev1 stack use MyProject? Sorry if it’s a dumb question, just trying to join the dots. Would it inherit from it? Would it new it up?
b

broad-dog-22463

12/03/2020, 12:49 PM
So let’s say your application creates a resource group, a storage account and a storage container
That’s a project
A stack is when you deploy that project - let’s say to a dev environment
So the stack is just the actual state of the resources (+ any config)
It’s not the code itself
Stacks are the deployed resources on top of a project
Does that make it a bit more clear?
c

cuddly-smartphone-15267

12/03/2020, 1:06 PM
Hmm. Kind of. So you’re saying that the project is like the blueprint. And the stack is like the result of constructing based on that blueprint. So I guess I’m wondering how to organise the code so that I can construct that blueprint several times (with slightly different configurations) within one account.
b

broad-dog-22463

12/03/2020, 1:12 PM
You don’t need anything special for that
Create your code then <for each name in a loop> Pulumi stack init
That will create you all the stacks you need on top of the project and then you can add config and run Pulumi up in each of those stacks independently
A project (where your code resources live) can have many stacks (pointing to where the resources have been deployed) Each stack can take its own credentials and config and the base code will be deployed as the stack dictates
c

cuddly-smartphone-15267

12/03/2020, 1:21 PM
Thanks very much Paul for taking the time to explain to me. I don’t suppose there are any examples I could refer to?
b

broad-dog-22463

12/03/2020, 1:28 PM
There’s a small intro as code workshop you can step through
This should help you with the Pulumi concepts https://github.com/pulumi/infrastructure-as-code-workshop/blob/master/labs/aws/csharp/README.md
Ping me if you need anything - happy to help!
View count: 1