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

    steep-toddler-98503

    06/06/2019, 11:37 PM
    Calling [toJSON] on an [Output<T>] is not supported. To get the value of an Output as a JSON value or JSON string consider either: 1: o.apply(v => v.toJSON()) 2: o.apply(v => JSON.stringify(v)) See https://pulumi.io/help/outputs for more details. This function may throw in a future version of @pulumi/pulumi.
    f
    • 2
    • 12
  • f

    full-dress-10026

    06/07/2019, 4:05 PM
    Can an output of a
    pulumi.dynamic.Resource
    be a function?
    w
    • 2
    • 3
  • f

    full-dress-10026

    06/07/2019, 4:44 PM
    Every time I change my
    pulumi.dynamic.Resource
    , I get this diff message
    [diff: ~__provider]
    . What does this mean?
  • b

    boundless-monkey-50243

    06/07/2019, 5:31 PM
    Is there a community library or something for making the writing of AWS IAM policies a little more type-safe?
  • c

    cool-egg-852

    06/07/2019, 5:49 PM
    Seems like Pulumi needs some work with regards to it’s diffing for nodepools. Adding labels when there were none before is triggering a replacement due to not having whatever GKE adds such as
    maxPodsPerNode, namePrefix, nodeCount
    , etc.
    p
    • 2
    • 4
  • e

    early-musician-41645

    06/07/2019, 6:18 PM
    I've got a feature I'm working on to automatically create a scheduled pipeline in Gitlab with each new EKS cluster created via Pulumi. Since the gitlab provider in Pulumi doesn't yet exist, and support in terraform for scheduled pipelines is still in MR (https://github.com/terraform-providers/terraform-provider-gitlab/pull/116) I'm trying to find another way to tie in the pipeline creation. Short of writing my own Pulumi provider for the purpose, the gitlab REST API works great for this, so I thought perhaps there's a way in pulumi to: - during
    update
    check if a scheduled pipeline already exists via the gitlab API, and if it doesn't then create one - during
    destroy
    check if a scheduled pipeline already exists via the gitlab API, and if it does then delete it Is this reasonable? Is there a better approach for doing this?
    c
    • 2
    • 3
  • a

    average-dream-51210

    06/07/2019, 7:18 PM
    Hey in this snippet:
  • a

    average-dream-51210

    06/07/2019, 7:18 PM
    The Lambda resource is pointing to a assetArchive which points to a folder.
  • a

    average-dream-51210

    06/07/2019, 7:19 PM
    From my understanding, it zips it up before deploying.
  • a

    average-dream-51210

    06/07/2019, 7:19 PM
    Is it also possible to do that with a Lambda Layer?
  • a

    average-dream-51210

    06/07/2019, 7:19 PM
    Right now the lambda layer code looks like this:
  • a

    average-dream-51210

    06/07/2019, 7:20 PM
    Is it possible to use a pulumi.asset.assetArchive in the Lambda Layer to point to a src folder of the Lambda code, instead of an already zipped file?
    w
    • 2
    • 3
  • b

    billowy-garage-68819

    06/07/2019, 7:42 PM
    so I have stacks named thusly org/environment/stack where the stack could refer to my k8s provisioning stuff or the network. In regards to network, when I have org/preprod/network and org/prod/network it really confused the pulumi cli on configuration, is there anything I can do short of doing a config refresh every time I change stacks?
    g
    • 2
    • 8
  • s

    stocky-island-3676

    06/07/2019, 7:53 PM
    Is there a way to lookup details only for a specific resource with
    pulumi up
    ? In the same update, I’m also deleting a big Helm chart (
    kube-prometheus
    ) and that creates a very, very big details list. Therefore, if I can select just one resource (which is not of that chart’s resources) would help a lot.
    w
    • 2
    • 3
  • b

    billowy-laptop-45963

    06/07/2019, 8:24 PM
    How's pulumi's performance with large stacks? Is there a recommended limit on the max resources to manage with a single stack? In theory you could put an entire companies infrastructure in one stack.
    s
    • 2
    • 3
  • m

    many-vase-67759

    06/07/2019, 9:47 PM
    Hi there! Heard about Pulumi recently, I'd like to give it a try but wondering if I can easily upgrade from community account to a team account if it suits our need ? I intend to use community at first as Ill be the only one to test it. Thanks!
    m
    • 2
    • 3
  • m

    many-vase-67759

    06/07/2019, 9:49 PM
    Also quick noob question on outputs/consumers, can a project written in typescript can consume outputs of a project written in python for instance ?
    w
    • 2
    • 2
  • f

    fierce-dinner-20116

    06/07/2019, 10:43 PM
    Posting https://github.com/pulumi/pulumi-eks/issues/137#issuecomment-500061653 for visibility. Do I just need to create a whole separate program / stack for now?
    w
    • 2
    • 1
  • s

    straight-napkin-70642

    06/07/2019, 10:50 PM
    Hi, are there some ways to reverse engineer an actual deploy into pulumi? at least to navigate it as Outputs
    w
    • 2
    • 3
  • e

    early-musician-41645

    06/07/2019, 11:20 PM
    I'm building a dynamic provider and a class to manage in pulumi. I've implemented a
    create
    method that works when I do
    pulumi up
    . The
    create
    method makes a
    POST
    to a server API, and then it gets back a result object with some data about the created resource, e.g.
    id
    ,
    owner
    , etc. I'd like to be able to do something like:
    console.log(myNewResource.id);
    However, I'm not sure how to expose the returned values in the resource's state. Any pointers or examples?
    c
    • 2
    • 10
  • f

    full-dress-10026

    06/07/2019, 11:53 PM
    How would you get the queue URL off of a
    aws.sqs.Queue
    ?
    c
    • 2
    • 1
  • a

    average-dream-51210

    06/08/2019, 12:59 AM
    Hmm, my APIGateway endpoint url has a /stage appended to the end of it. Anybody know how this happens?
  • a

    average-dream-51210

    06/08/2019, 1:00 AM
    I thought it came from the stack name. I deleted the stack and recreated a 'develop' but /stage is still being appended to the api gateway endpoint url
    w
    b
    • 3
    • 4
  • a

    average-dream-51210

    06/08/2019, 1:30 AM
    Hrm, I had a
    protected: true
    flag on an AWS Secrets manager resource. I changed the resource name and took the protected flag off because it coudln't delete a protected resource to do a renaming. It's still giving me a protection error even with protected flag gone:
  • a

    average-dream-51210

    06/08/2019, 1:30 AM
    Getting this error:
    error: Preview failed: refusing to delete protected resource 'urn:pulumi:develop::savor-live::aws:secretsmanager/secret:Secret::
  • a

    average-dream-51210

    06/08/2019, 1:31 AM
    Although, i know secretse manager has some weird deletion lifecycle policy where it can't fully be deleted before 7 days minimum
  • a

    average-dream-51210

    06/08/2019, 1:31 AM
    and both my names were already there. I wonder if I should just leave secrets manager out of Pulumi and just manage it manually.
    w
    • 2
    • 2
  • a

    average-dream-51210

    06/08/2019, 1:38 AM
    Hrm or can I reset it by doing a stack export, deleting the resource URN and then
    pulumi up
    ?
    w
    • 2
    • 2
  • a

    average-dream-51210

    06/08/2019, 1:44 AM
    If I had an existing secretsManager and wanted to put it under Pulumi how would I do that? Is there a way to tie the URN to ARN?
    w
    • 2
    • 2
  • b

    big-glass-16858

    06/08/2019, 8:09 AM
    Is there a way to redirect the pulumi's stream display outputs to an external ressource (let's say Elastic search or another DB for example) ? I'm actually wrapping the
    pulumi
    binary with a python script that does the job but it feels very hacky and not secure. anyone have an idea ?
    w
    • 2
    • 2
Powered by Linen
Title
b

big-glass-16858

06/08/2019, 8:09 AM
Is there a way to redirect the pulumi's stream display outputs to an external ressource (let's say Elastic search or another DB for example) ? I'm actually wrapping the
pulumi
binary with a python script that does the job but it feels very hacky and not secure. anyone have an idea ?
w

white-balloon-205

06/09/2019, 4:43 PM
Other than piping stdout ( possibly in diff mode), not really. We do now have
—json
support, though I believe it waits till completion. That may work for you? Note that you can also retrieve data from the pulumi service if you need to check on the status of a deployment. These REST APIs aren’t yet documented, but are generally stable since we have arbitrarily old CLI clients using them.
b

big-glass-16858

06/11/2019, 12:22 PM
Thanks for the reply, json output is only available on preview command if i'm not mistaken, for now I'm parsing stdout. Thanks.
View count: 1