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

    acoustic-camera-18430

    04/14/2020, 10:14 PM
    “Thanks to integration with Terraform providers, Pulumi is able to support a superset of the providers that Terraform currently offers.” So, how would you leverage a TF provider such as pingdom? Pingdom isn’t listed as a provider in Pulumi.
    b
    4 replies · 2 participants
  • e

    eager-cartoon-54068

    04/14/2020, 10:48 PM
    Is there a way to get or create a resource? I’m trying to add a Cloudwatch log group subscription to a log group that may or may not exist when I deploy to different regions and accounts. When I try:
    let batchLogGroup = null;
        try {
            batchLogGroup = aws.cloudwatch.LogGroup.get(`batch-log-group-${region}`, '/aws/batch/job', {},  {provider})
        } catch (e) {
            batchLogGroup = new aws.cloudwatch.LogGroup(`batch-log-group-${region}`, {name: "/aws/batch/job", retentionInDays: 7}, {provider})
        }
    I get `error:
    Preview failed: resource ‘/aws/batch/job’ does not exist
    .
    f
    2 replies · 2 participants
  • a

    able-zoo-58396

    04/14/2020, 11:02 PM
    Hello. I'm trying to determine the best way to dynamically spin up and tear down infrastructure from my app backend. The Pulumi Team Pro plan says it includes access to APIs and Webhooks. Does anyone know where I can find the docs for that API?
    w
    3 replies · 2 participants
  • h

    high-jackal-29091

    04/15/2020, 8:33 AM
    Hey. Either I found a bug or I am doing something wrong. Could you please advise (or should I submit a GH issue)? What am I trying to do is to retrieve an existing aws AMI imageId deployed to the same aws account from which I do request. For some reason when my search query finds AMI, the returned imageId is undefined.
    const ami = aws.getAmi({
                mostRecent: false,
                owners: ["0123456"], // my AWS account ID
            }, { provider: args.provider });
    
            let imageId = ami.imageId || ami.id;
    
            console.log('IMAGE ID: ' + imageId); 
    //result: Your query returned more than one result. Please try a more specific search criteria, or set `most_recent` attribute to true.
    
    const ami = aws.getAmi({
                filters: [
                    {
                        name: "name",
                        values: ['non existing ami name'],
                    }
                ],
                mostRecent: true,
                owners: ["0123456"], // my AWS account ID
            }, { provider: args.provider });
    
            let imageId = ami.imageId || ami.id;
    
            console.log('IMAGE ID: ' + imageId); 
    // result:  Your query returned no results. Please change your search criteria and try again.
    
    const ami = aws.getAmi({
                mostRecent: true,
                owners: ["0123456"], // my AWS account ID
            }, { provider: args.provider });
    
            let imageId = ami.imageId || ami.id;
    
            console.log('IMAGE ID: ' + imageId); 
    //result: IMAGE ID: undefined
    b
    4 replies · 2 participants
  • s

    stale-minister-93676

    04/15/2020, 12:42 PM
    Can Pulumi handle configuring a VM it just created? IE installing apt packages, copying config files into it etc. Or is there a better tool suited for that?
    c
    r
    +2
    12 replies · 5 participants
  • w

    white-eve-77500

    04/15/2020, 12:58 PM
    hey! i'm trying to diagnose some very slow performance when updating multiple resources in kubernetes - i get a lot of hanging with no activity, and very slow resource modification times (~41 minutes to delete 137 resources). i've taken a trace, but i'm unable to view it in any browser, as it end up crashing my machine after using all my memory (32GB!) to load the trace. is anyone able to help or give some pointers? i'm happy to share the trace if required
    w
    2 replies · 2 participants
  • s

    stale-minister-93676

    04/15/2020, 1:26 PM
    I'm trying to clone a VM in vSphere and add an extra disk to it. Everything works except for adding the disk using
    disks: [{ label: 'backups', size: 100 }]
    which gives me the following error
    vsphere:index/virtualMachine:VirtualMachine resource 'NFS1P' has a problem: "disk.0.attach": conflicts with datastore_cluster_id
    3 replies · 1 participant
  • r

    red-salesclerk-85731

    04/15/2020, 4:25 PM
    Quick question. I’m throwing an error using
    pulumi.log.error()
    in ts, without a resource. When running up, the error shows up in preview yet Pulumi asks me if I want to deploy the changes. The docs says it should stop processing. Am I doing something wrong here?
    error logs a fatal error to indicate that the tool should stop processing resource operations immediately.
    https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/log/#error
  • e

    eager-cartoon-54068

    04/15/2020, 4:33 PM
    I started getting
    error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:49758: connect: connection refused"
    …
    panic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of urn:pulumi:dev::<project>::aws:batch/computeEnvironment:ComputeEnvironment::gpu-worker-computeEnvironment-us-east-1
    last night. I destroyed the stack, rebooted, backed out all changes to a point that was definitely working. I don’t know what else to try. Any ideas? A change to an AWS Batch Compute Environment almost always results in a replacement.
    g
    14 replies · 2 participants
  • m

    mammoth-address-60583

    04/15/2020, 7:18 PM
    Hi guys! I'm trying to use the Systems Manager Parameter Store and creating a new parameter in pulumi like so.
    export const param = new aws.ssm.Parameter("mySecVal", {
        type: "SecureString",
        value: 'Some Value'
    })
    However, when I try to get this value in my Lambda I I can't access by the name
    mySecVal
    AWS says the parameter doesn't exist. I can pull it if I use the pulumi name
    mySecValue
    . Is there a pulumi way of pulling this value by the name I gave it in my lambda or Is there anyway to have this parameter stored without the pulumi id that get's tacked on at the end.?
    b
    4 replies · 2 participants
  • s

    salmon-ghost-86211

    04/15/2020, 8:35 PM
    I have run into an odd pulumi question. When I try to run 
    pulumi up
    , I get
    Diagnostics:
      aws:route53:Record (newDnsAlias-rw):
        error: Duplicate resource URN 'urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw'; try giving it a unique name
    If I export the stack, that urn is not listed. Even if I just search for
    newDnsAlias-rw
    in the export, it is not found. If I try to delete it, it says it doesn't exist.
    $ pulumi state delete 'urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw'
     warning: This command will edit your stack's state directly. Confirm? Yes
    error: No such resource "urn:pulumi:qa-red::eks-cluster::aws:route53/record:Record::newDnsAlias-rw" exists in the current state
    Pulumi v1.14.1 Node v12.16.1 aws cli 1.18.39 kubectl v1.18.1 package.json has
    latest
    flag for everything except typescript. Let me know if you need anything from
    package-lock.json
    . Writing everything in
    typescript
    . Any insights?
    f
    3 replies · 2 participants
  • l

    little-cartoon-6032

    04/16/2020, 5:24 AM
    Did Pulumi support deployment of app or containers to cloud foundry instance.
    g
    1 reply · 2 participants
  • f

    future-kite-91191

    04/16/2020, 7:45 AM
    What is the preferred method for waiting for a specific Resource status member to reach a certain state, before reporting that the Resource itself is provisioned completely?
    a
    5 replies · 2 participants
  • h

    handsome-cat-98152

    04/16/2020, 11:08 AM
    @broad-dog-22463 Found a rather worrying bug: The output of pulumi up/preview tells me this:
    error: no resource plugin 'gcp-v1.4.5' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource gcp v1.4.5`
    Now, when I run this command I run into a different error:
    > pulumi plugin install resource gcp v1.4.5                                                                       ~/Graphmasters/pummeleinhorn/tests/basic_deployment(cloud-dns-records-108✗)@Nilss-MBP.fritz.box
    [resource plugin gcp-1.4.5] installing
    error: [resource plugin gcp-1.4.5] downloading from <https://api.pulumi.com/releases/plugins>: 404 HTTP error fetching plugin from <https://api.pulumi.com/releases/plugins/pulumi-resource-gcp-v1.4.5-darwin-amd64.tar.gz>
    Is there a workaround? Greetings and have a nice day!
    b
    s
    5 replies · 3 participants
  • a

    agreeable-traffic-11888

    04/16/2020, 2:10 PM
    Hi, I’m pulling in secrets from config as follows:
    const cfg = new pulumi.Config();
    const dbUsername = cfg.requireSecret("db_username");
    const dbPassword = cfg.requireSecret("db_password");
    When I run
    pulumi stack export --file stack.json
    these details are appearing in plain text in the exported file, under an
    outputs
    node. Is that expected?
    b
    12 replies · 2 participants
  • m

    millions-judge-24978

    04/16/2020, 6:07 PM
    Does anyone by chance have provider binaries handy for https://github.com/ibrasho/pulumi-github?
    f
    1 reply · 2 participants
  • a

    acoustic-river-98339

    04/16/2020, 7:28 PM
    Good evening, what's the Pulumi best practice with manging a lot of configuration? For example, we have 10+ Kubernetes clusters with different node types, size, disk configuration but common Pulumi code between them i.e for loop through the 10 different Kubernetes config. Looking at the Pulumi docs it says you should set it via the CLI using config set which adds it to the stack. I'd prefer to do it via code and store it in a Git Repo but I seem to be going down the root of using YAML to feed into Python Pulumi code which seems to be going against the Pulumi grain. Another example is a large series of NSG rules across different Azure subscriptions. What's the best way to handle common Pulumi code with large variation via configuration? Cheers!
    f
    l
    14 replies · 3 participants
  • a

    alert-pencil-7400

    04/16/2020, 8:31 PM
    How would you deploy an asset from GS bucket? E.g.
    new pulumi.asset.RemoteArchive('<gs://example/file.zip>')
    <-- complains that
    gs://
    is not supported
  • a

    alert-pencil-7400

    04/16/2020, 8:54 PM
    Also, how would you make Pulumi extract that archive before deploying?
    w
    3 replies · 2 participants
  • f

    faint-motherboard-95438

    04/16/2020, 10:24 PM
    Hi there, How are you supposed now to successfully access a component’s value passed to a custom
    ComponentResource
    (in my use case, I need a bucket’s name) ? I tried to define an arg like
    aws.s3.bucket
    ,
    string
    ,
    pulumi.Input<string>
    ,
    pulumi.Input<aws.s3.bucket>
    , I tried to pass the whole bucket object or the bucket name directly, I tried to convert the input as an output, I tried to apply, interpolate, whatever, all I get when I want to use the name is :
    Calling [toString] on an [Output<T>] is not supported.
        
        To get the value of an Output<T> as an Output<string> consider either:
        1: o.apply(v => `prefix${v}suffix`)
        2: pulumi.interpolate `prefix${v}suffix
    Thanks
    g
    23 replies · 2 participants
  • f

    flat-engine-80045

    04/16/2020, 10:54 PM
    Hi all. With the pulumi_docker library for python, how do I declare env vars for a container?
    envs
    is of type pulumi.Input[list] but i would expect it to be of type pulumi.Input[dict] to take key:value pairs for the env vars? I appreciate any help
    r
    4 replies · 2 participants
  • h

    high-postman-55219

    04/16/2020, 11:49 PM
    help, download plugins is too slow, my internet connection has 120Mb for download, but plugins take hours to download
  • h

    high-postman-55219

    04/16/2020, 11:49 PM
  • h

    high-postman-55219

    04/16/2020, 11:50 PM
  • h

    high-postman-55219

    04/16/2020, 11:50 PM
    why download plugins is too slow?
    g
    13 replies · 2 participants
  • b

    bland-lamp-16797

    04/17/2020, 6:52 AM
    I'm thinking about doing crazy project in pulumi, please tell me that I'm a too much of a dreamer 🙂 The idea is to build a microservices infrastracture in GKE with dynamic dev envirment. Which means that we have 10+ microservices in diffrent repos written in JS and we want every developer to create his own environment . The idea is to have 2 type of pulumi configuration: 1. in repo
    infrastracture
    that will have 3 stacks (dev/staging/prod), each stack configures diffrent GCP project 2. in each repo it will be a folder called
    infra
    which will have pulumi configration for dynamic env. So if Joe wants environment he will trigger some script that will go across all repos and create env for him joe.env.company.dev where he can work on it Am I going a right direction? I'm afraid I'll stumble on something unexpected so I ask here...
    l
    2 replies · 2 participants
  • b

    bored-planet-52144

    04/17/2020, 10:46 AM
    Hi All, I am new to Pulumi . Any starter Pulumi video tutorials ? If so , Please share the link
    f
    1 reply · 2 participants
  • b

    boundless-tailor-35598

    04/17/2020, 10:47 AM
    I found the Pulumi TV channel on Youtube helpful (https://www.youtube.com/channel/UC2Dhyn4Ev52YSbcpfnfP0Mw)
  • b

    boundless-tailor-35598

    04/17/2020, 10:47 AM
    There have been a bunch of video conferences in the last few weeks that have been useful also.
  • f

    faint-motherboard-95438

    04/17/2020, 10:48 AM
    A quick & easy one (I guess), is there a way to create a new provider from another one ? (so that I can change one or more parameter on the fly, like
    region
    while using the same custom credentials)
Powered by Linen
Title
f

faint-motherboard-95438

04/17/2020, 10:48 AM
A quick & easy one (I guess), is there a way to create a new provider from another one ? (so that I can change one or more parameter on the fly, like
region
while using the same custom credentials)
View count: 1