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

    bitter-island-28909

    02/27/2019, 3:34 PM
    I’m experiencing something odd with AWS Lambdas that must somehow be Pulumi related, but has me stumped. I’ve got a simple lambda that does nothing but call the
    AWS.S3.copyObject
    API. The exact same code runs fine locally, and in a lambda that I create in the traditional way. However, when I deploy using Pulumi’s
    aws.lambda.CallbackFunction
    , the
    copyObject
    call never invokes its callback (or delivers its promise, I’ve tried both ways). All the other code in the function seems to run, it’s very strange. Is there any chance that Pulumi is transforming the AWS API itself a bit too aggressively? I notice that my call to
    require('aws-sdk')
    is replaced by
    require("aws-sdk/lib/aws.js")
    after Pulumi does its magic.
    b
    • 2
    • 3
  • b

    brainy-magician-83981

    02/27/2019, 4:17 PM
    Writing a AWS Lambda function to process S3 events. I'm using AWS Lambda Layers for code deployment. When the zip files associated with the layers are updated however, they get deployed to their S3 location but the associated layer resources are not picking up this change. So the lambda function is not getting the latest updated zip files. My workaround at the moment is to delete the layer resources by commenting the resource out of my pulumi script ... running
    pulumi up
    ... then uncommenting to add the layer resources back ... and running
    pulumi up
    again. Is there a better way of handling this? Thx!
    w
    • 2
    • 6
  • w

    white-balloon-205

    02/27/2019, 5:33 PM
    @thousands-notebook-91098 @worried-engineer-33884 regarding your question about how to use data sources in Python - there’s an example here you can look at: https://github.com/pulumi/examples/blob/deff78c44de30ed63cd40e547eac42e1cb89fd52/azure-py-webserver/__main__.py#L72-L74
    w
    • 2
    • 4
  • t

    thousands-notebook-91098

    02/27/2019, 5:33 PM
    yessss I was right with the
    await
  • t

    thousands-notebook-91098

    02/27/2019, 5:33 PM
    my python-fu grows stronger
  • t

    thousands-notebook-91098

    02/27/2019, 5:34 PM
    ☯️
  • t

    thousands-notebook-91098

    02/27/2019, 5:35 PM
    I'm curious how that async stuff works under the hood in terms of generating a declarative state and then applying it. Since imperative languages are generally serially interpreted I wonder how often people will run into these issues moving forward
    i
    • 2
    • 6
  • j

    jolly-lifeguard-22556

    02/27/2019, 5:43 PM
    Has anything changed recently in terms of how
    @pulumi/docker
    interacts with GCP container registry based on your credentials? I'm using a service account with full project permissions but am unable to push docker images:
    Caller does not have permission 'storage.buckets.create'. To configure permissions, follow instructions at: <https://cloud.google.com/container-registry/docs/access-control>
    . In the past this just worked and I didn't have to go through any extra steps or set up to be able to push up images
    w
    • 2
    • 3
  • w

    worried-engineer-33884

    02/27/2019, 7:20 PM
    message has been deleted
  • w

    wonderful-yacht-97719

    02/27/2019, 7:38 PM
    any thoughts about a controller-based workflow for kubernetes? i.e. pulumi running in the cluster checking git repos for changes, then applying the changes when detected (and/or on a schedule)
    c
    f
    o
    • 4
    • 17
  • w

    wonderful-yacht-97719

    02/27/2019, 7:38 PM
    pull vs. push
  • i

    incalculable-oil-55773

    02/27/2019, 8:27 PM
    Does anyone have any examples of non-trivial express apps deployed with Pulumi? I want to be able to run a small node app locally or on lambda, and I'm trying to figure out how to structure it without getting continual type errors.
    w
    • 2
    • 5
  • j

    jolly-lifeguard-22556

    02/27/2019, 9:32 PM
    Is there anything in Pulumi that would allow you to run an arbitrary Docker container as part of deployment? Basically the equivalent of a Kubernetes Job but without K8s in the picture.
    s
    c
    • 3
    • 8
  • b

    busy-umbrella-36067

    02/27/2019, 10:22 PM
    Should a
    pulumi refresh
    detect drift of env vars for a kubernetes deployment/statefulset resource?
  • b

    busy-umbrella-36067

    02/27/2019, 10:26 PM
    I have a weird stack state, Pulumi assumed the updates happened but in reality they failed. Subsequent updates show no planned changes even with a
    pulumi refresh
    c
    • 2
    • 1
  • w

    worried-engineer-33884

    02/27/2019, 10:37 PM
    how do i use the result of a data source function as an input to a resource?
    f
    w
    • 3
    • 4
  • c

    cold-coat-35200

    02/28/2019, 3:30 PM
    hi, I'm wondering why the StackReference getOutput returns with an Output type? Is it possible that it returns an unresolved output or the other stack is running and it will return the latest output when the referenced stack deploy finished?
    w
    • 2
    • 8
  • c

    cold-piano-21918

    02/28/2019, 5:31 PM
    Trying to use
    ecs.get_cluster
    in python. Is there a code sample that shows how to do this? Do I really have to create an async function just to get the value?
    w
    • 2
    • 5
  • b

    busy-pizza-73563

    02/28/2019, 5:39 PM
    Is there a way to programatically (re)define the "done" status of a resource? Use case: when creating a CRD managed by a kubernetes operator, I want to wait until the child resources are created by the operator.
    w
    c
    • 3
    • 5
  • g

    great-dog-65117

    02/28/2019, 6:00 PM
    Hellow there! Im really interesed in the
    python
    API...I cant find how integrate pulumi code with ansible (or cloud-init)...it this feature supported?
    w
    • 2
    • 1
  • m

    millions-judge-24978

    02/28/2019, 7:27 PM
    Does the
    k8s.helm.v2.Chart
    package handle sub-charts specified via the parent's
    requirements.yaml
    file?
    c
    • 2
    • 7
  • g

    gorgeous-area-37785

    02/28/2019, 7:43 PM
    hello there, I'm starting to use pulumi, but I already have some code/state in terraform is it possible to migrate my current state to pulumi? (I couldn't find anything about this)
    g
    • 2
    • 1
  • o

    orange-tailor-85423

    02/28/2019, 7:44 PM
    I’m not seeing this UI in the Pulumi website:
  • o

    orange-tailor-85423

    02/28/2019, 7:44 PM
    How do I navigate to that?
  • o

    orange-tailor-85423

    02/28/2019, 7:48 PM
    nm found it
  • o

    orange-tailor-85423

    02/28/2019, 7:49 PM
    Is this correct - Base Permissions Base permissions to all of the organization’s stacks, granted to all organization members. Members can be granted stack permissions from multiple sources (e.g. Teams) and will retain the highest level of permissions granted.
  • o

    orange-tailor-85423

    02/28/2019, 7:49 PM
    Meaning Write at the org level will supersede READ at a stack level?
    w
    c
    • 3
    • 3
  • o

    orange-tailor-85423

    02/28/2019, 7:49 PM
    Going to production soon and locking things down
  • w

    white-balloon-205

    02/28/2019, 7:50 PM
    BTW - for others - this UI is available at https://app.pulumi.com/&lt;yourorg&gt;/settings/access for administrators of an Organization in the Pulumi console.
  • o

    orange-tailor-85423

    02/28/2019, 7:51 PM
    thanks Luke
Powered by Linen
Title
o

orange-tailor-85423

02/28/2019, 7:51 PM
thanks Luke
View count: 1