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

    rhythmic-tailor-27305

    06/15/2020, 7:47 AM
    I hope you guys are well. Actually I am doing a comparison by comparing features of pulumi with aws cdk. I am finding it difficult to compile up all the extra features which pulumi gives over aws cdk. Can anyone please help me out by highlighting some of the features?
    c
    l
    • 3
    • 2
  • r

    rhythmic-tailor-27305

    06/15/2020, 7:48 AM
    why should I prefer pulumi for my projects, plus what are the major differences between paid and non paid version
    c
    a
    • 3
    • 3
  • v

    victorious-gigabyte-4729

    06/15/2020, 5:56 PM
    How are project groups defined? I'd apparently created a project group once but can't seem to create a group of projects a second time? Not sure how.
    • 1
    • 1
  • n

    numerous-lifeguard-13411

    06/15/2020, 6:45 PM
    I'm sure there was a readme on using parameters to populate a pulumi spec, but can't seem to find it now. Anyone got a link?
  • s

    salmon-needle-46218

    06/15/2020, 6:49 PM
    is there a specific channel to talk about the
    pulumi/actions
    docker container?
    b
    • 2
    • 3
  • m

    miniature-petabyte-40567

    06/15/2020, 7:19 PM
    I'm having problems understanding setting up an application load balancer's AccessLogs in regards to the bucket, is this documentation just out of date? It seems like it's looking for an Input<string>, won't accept an S3.Bucket. Is it just looking for the bucket's name, or the ID? https://www.pulumi.com/docs/reference/pkg/dotnet/Pulumi.Aws/Pulumi.Aws.ApplicationLoadBalancing.LoadBalancer.html
    AccessLogs = new Aws.LB.Inputs.LoadBalancerAccessLogsArgs
            {
                Bucket = aws_s3_bucket.Lb_logs.Bucket,
                Enabled = true,
                Prefix = &quot;test-lb&quot;,
            },
    s
    • 2
    • 1
  • n

    numerous-lifeguard-13411

    06/15/2020, 7:28 PM
    When creating t2.micro instances I get a complaint sometimes that the size is not available in an availability zone, and to choose a different one or don't set one. I have not set any AZ explicitly (in older versions of my script--I "solved" the issue by forcing one). It seems like pulumi is distributing across AZs by default in AWS--is there a way to turn off that behaviour?
    s
    g
    • 3
    • 5
  • a

    astonishing-quill-88807

    06/15/2020, 7:49 PM
    Has anyone tried out doing conditional adoption of existing resources? For instance, can you do something like:
    existing_vpc = ec2.get_vpc(tags={'Name': 'my-vpc-name'})
    if existing_vpc and existing_vpc.not_in_stack():
        import_opts = ResourceOption(import_=existing_vpc.id)
    e
    • 2
    • 2
  • a

    astonishing-quill-88807

    06/15/2020, 7:50 PM
    Where the
    not_in_stack
    functionality can do some broad lookup of whether Pulumi is already managing the given VPC?
  • w

    white-beard-6027

    06/15/2020, 7:52 PM
    So something interesting happened just now. I was trying to manage a secret using pulumi as 
    pulumi config set --path "path/of/secret-key/"
     and entered a weird looking 16 char 
    pwgen
     random password. And Pulumi detected that it looks like a password and asked me to use 
    --secret
     flag to save it securely. How cool is that! 🙂 Pleasant surprise. And a DX.
    😛artypus-8bit: 4
  • m

    mysterious-pilot-36551

    06/15/2020, 10:38 PM
    So what’s the proper way (if any) of inspecting an Output type in Python? Printing it doesn’t give a pythonic string and I’ve tried numerous variations of apply() with no success either. Makes troubleshooting really difficult.
    b
    • 2
    • 3
  • g

    great-byte-67992

    06/15/2020, 11:39 PM
    Hey there. Has anyone found a good pattern for a self refreshing “end date” on azure service principals? I don’t want to hardcode an expiry date for the service principal. Is there a way to do a
    Date.now + N days
    that won’t update on every deployment, perhaps only updating when it’s within a week of the expiry date?
  • f

    future-daybreak-2871

    06/16/2020, 8:32 AM
    Hi guys. I'm just getting started with pulumi but am facing an issue.
  • f

    future-daybreak-2871

    06/16/2020, 8:33 AM
    I'm creating an ecs cluster
    ecs_cluster = aws.ecs.Cluster("ecsCluster", name="cluster-name", tags=default_tags)
    and trying to refer to it using
    ecs_cluster.name
    (tried
    ecs_cluster.name.apply(lambda name: name)
    too.
    g
    • 2
    • 2
  • f

    future-daybreak-2871

    06/16/2020, 8:34 AM
    I'm getting that as
    <pulumi.output.Output object at 0x7f717c021d30>
  • f

    future-daybreak-2871

    06/16/2020, 8:35 AM
    I guess I'm facing the same issue as @mysterious-pilot-36551
  • f

    famous-kite-69533

    06/16/2020, 12:50 PM
    Hi all. I have a variable for an API token defined like this:
    const apiToken = pulumi.output(args.apiToken || config.getSecret('apiToken') || "blah")
    then I am trying to interpolate its value in a string:
    secretInline: `HCLOUD_API_TOKEN: '${apiToken}'`
    Instead of the expected value, the following is stored (it's a Kubernetes secret):
    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`
    See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.
    How can I fix? I've read a bit and tried adding 
    .apply(v => v)
     but nothing changes. Thanks!
    • 1
    • 1
  • q

    quick-terabyte-13013

    06/16/2020, 1:51 PM
    Hi guys, i'm new to using Pulumi on the pull down step
    pulumi new aws-python -s tpilvelis-gw/aws-python/dev
    I'm getting error
    error: unable to open bucket <azblob://pulumi>: azureblob.OpenBucket: accountName is required
    is this on the pulumi side?
    b
    • 2
    • 1
  • f

    future-daybreak-2871

    06/16/2020, 1:59 PM
    Anyone? I still haven't been able to resolve it. I'm probably missing something very basic...
    l
    g
    • 3
    • 9
  • r

    rich-napkin-40911

    06/16/2020, 3:51 PM
    Help guys 🙂, yesterday I deployed a stack when logged in locally, and everything was successful, but today, when I go to the directory and
    pulumi stack ls
    , it doesn't show my stack (it's present in
    ~/.pulumi/stacks
    and also my
    Pulum.<stack>.json
    is present in my directory); what's happening? --- UPDATE --- It's confusing for me as to why it should matter, but if I set
    PULUMI_CONFIG_PASSPHRASE
    , my stack is displayed
    g
    • 2
    • 2
  • b

    bitter-zebra-93800

    06/16/2020, 4:24 PM
    Is there a flag to turn off the random string suffix that gets appended to objects pulumi creates? I have a few persistent S3 buckets that I don’t want the random strings on but the rest of my items should have it.
    l
    i
    f
    • 4
    • 3
  • a

    able-crayon-21563

    06/16/2020, 9:13 PM
    A tip regarding slow performance in Pulumi programs that use the non-default Kubernetes provider: Pulumi might also be trying to connect to the ambient cluster from kubeconfig (and timing out if it points to a non-existent cluster). I found that the performance of my Pulumi program increased significantly by explicitly setting the ambient context to a dummy value.
    config:  
      kubernetes:context: none
    The odd thing is that all my resources from
    k8s
    have an explicit provider set, and so the ambient provider shouldn’t be needed. FYI.
    b
    r
    • 3
    • 4
  • b

    brash-manchester-88595

    06/16/2020, 9:35 PM
    is it possible to ignore tag keys that are unknown at compile time? Eg. I want to ignore EKS cluster ownership tags on AWS VPC subnets, but they contain the cluster name which is dynamic. How can I filter those tags out so they don’t get deleted? Able to filter the keys on prefix (
    <http://kubernetes.io/cluster/|kubernetes.io/cluster/>
    ) would be ideal, but because they’re on the resource as an output and not in the
    props
    I can’t seem to use stack transformations.
    • 1
    • 1
  • d

    damp-jelly-5493

    06/17/2020, 8:23 AM
    is there a way of previewing a change, getting a snapshot and then applying that snapshot. i know theres
    pulumi preview -j > plan.json
    but i cant find the equivalent of
    terraform apply plan
    s
    • 2
    • 2
  • s

    steep-alligator-79173

    06/17/2020, 11:09 AM
    👋 I’m here! What’d I miss?
  • s

    steep-angle-29984

    06/17/2020, 11:46 AM
    I found this pearl but cannot get it to compile -> https://www.pulumi.com/blog/program-kubernetes-with-11-cloud-native-pulumi-pearls/#3-inject-envoy-sidecars-using-abstraction
    src/microservice/rex-common/base/BaseMicroservice.ts(5,21): error TS2532: Object is possibly 'undefined'.
    src/microservice/rex-common/base/BaseMicroservice.ts(5,31): error TS2339: Property 'template' does not exist on type 'Input<DeploymentSpec>'.
    The errors refer to the following line:
    const pod = args.spec.template.spec;
  • i

    icy-jordan-58549

    06/17/2020, 3:25 PM
    Any ideas why I started getting this? (Typescript)
    pulumi:pulumi:Stack (etl-test4):
        warning: resource plugin azure is expected to have version >=3.9.2, but has ; the wrong version may be on your path, or this may be a bug in the plugin
        warning: resource plugin azure is expected to have version >=3.9.2, but has ; the wrong version may be on your path, or this may be a bug in the plugin
    b
    b
    • 3
    • 45
  • a

    acceptable-stone-35112

    06/17/2020, 4:49 PM
    I do pulumi stack export and then pulumi stack import immediately after, not modifying the file and get following error: "invalid character 'ÿ' looking for beginning of value" on Windows (powershell terminal) Is there a way to control/fix the encoding?
    h
    • 2
    • 2
  • i

    icy-jordan-58549

    06/17/2020, 4:54 PM
    @pulumi/kubernetes
    has issue to destroy the stack for “operator” style deployments. Probably it doesn’t know about pods/services that operator makes, so pulumi always fails to destroy the k8s. Any ideas, workarounds?
    g
    • 2
    • 3
  • m

    mammoth-france-95463

    06/17/2020, 5:02 PM
    Is it possible to execute custom code to insert some rows in a just deployed database as last step in the stack (as an example)?
    g
    • 2
    • 2
Powered by Linen
Title
m

mammoth-france-95463

06/17/2020, 5:02 PM
Is it possible to execute custom code to insert some rows in a just deployed database as last step in the stack (as an example)?
g

green-school-95910

06/17/2020, 5:07 PM
Custom code and provisioneers can be done using Dynamic Providers: https://www.pulumi.com/docs/intro/concepts/programming-model/#how-dynamic-providers-work
m

mammoth-france-95463

06/17/2020, 7:09 PM
Thanks
View count: 1