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

    creamy-potato-29402

    06/28/2018, 7:21 PM
    THANKS!
  • q

    quaint-queen-37896

    06/29/2018, 2:40 AM
    sup
    šŸ‘‹ 4
  • s

    stocky-spoon-28903

    06/29/2018, 6:24 PM
    Am I missing something obvious, or is there not a way to set environment variables for an
    aws.serverless.Function
    ?
  • b

    bitter-oil-46081

    06/29/2018, 9:11 PM
    I do not think you are missing something obvious, @stocky-spoon-28903, while
    aws.lambda.Function
    exposes an environment property, we do not expose a similar property on
    aws.serverless.Function
    . I believe it would be as simple as adding
    environment?: string[]
    to
    aws,serverless.FunctionOptions
    and threading it down. Does that sound right @white-balloon-205 or I am missing something subtle here?
    w
    s
    • 3
    • 2
  • w

    white-balloon-205

    06/29/2018, 11:46 PM
    We've released Pulumi 0.14.1! More details in #announcements. Happy weekend hacking to all! šŸ™‚
  • a

    adventurous-wire-92385

    06/29/2018, 11:52 PM
    Is there an equivalent term for "chart" in pulumi? For example if I were making a contained component for Nginx-Ingress or something? "pulumi-module-nginxingress"?
    b
    c
    • 3
    • 5
  • b

    big-soccer-75859

    06/30/2018, 8:20 PM
    I noticed today that when pulumi serializes a function it doesn't ignore commented out lines and tries to actually work with them
  • b

    big-soccer-75859

    06/30/2018, 8:22 PM
    Also I worked out that serializing lodash appears to fail because in lodash they often do things like
    var isArray = Array.isArray
    and then pulumi can't work with that because isArray serializes as
    function isArray() { [native code] }
  • b

    big-soccer-75859

    06/30/2018, 8:23 PM
    I'm not 100% sure, but I think if they had just kept it as
    Array.isArray
    a serialization wouldn't be attempted (correct me if I'm wrong)
  • b

    big-soccer-75859

    06/30/2018, 8:24 PM
    I'm not a javascript guru enough to know a solution around this
  • b

    big-soccer-75859

    06/30/2018, 9:14 PM
    note: this doesn't affect code that uses
    require('lodash')
    within the actual function closure because pulumi interprets that differently and doesn't try to serialize anything. It's only if you use
    import
    or
    require
    outside of the function closure and then use that imported library within the closure
  • b

    big-soccer-75859

    06/30/2018, 9:25 PM
    I found a couple of related issues so I'll watch progress on those. https://github.com/pulumi/pulumi-aws/issues/249
  • b

    big-piano-35669

    07/01/2018, 1:17 AM
    Thanks @big-soccer-75859, please do let us know if you see anything not captured by that bug. Generally speaking, importing on the inside of a function should work around most (all?) of these issues. I realize, however, that this isn't idiomatic and what we would all write by default, so we will be spending some time next week discussing what to do here. Earlier on, we serialized modules differently -- so they led to actual requires during deserialization -- and it feels like this would address all of the issues we are seeing. Stay tuned and thanks for the great feedback!
    šŸ’Æ 1
  • m

    miniature-potato-84713

    07/02/2018, 3:48 AM
    Given this post: https://medium.com/@serverpunch/why-you-should-not-use-google-cloud-75ea2aec00de How would this manifest with Pulumi?
  • s

    stocky-spoon-28903

    07/02/2018, 9:11 AM
    Is that not independent of provisioning mechanism?
  • c

    creamy-potato-29402

    07/02/2018, 5:09 PM
    If I’m understanding correctly, this is the machinery of gcloud threatening to deactivate people’s infrastructure. This is orthogonal to pulumi.
  • i

    important-jackal-88836

    07/02/2018, 11:44 PM
    Does anyone know if the Terraform TLS provider or similar has been integrated into Pulumi?
  • b

    bitter-oil-46081

    07/03/2018, 12:11 AM
    @important-jackal-88836 I don’t believe anything like that has been done yet. Some folks have done a little work around pulimifying some other existing terraform providers and if it’s something you’re interested in trying, we can point you at some examples.
  • c

    chilly-crayon-57653

    07/03/2018, 12:11 AM
    For an existing Terraform Resource Provider (like TLS); you can also use Terraform Bridge; see https://github.com/pulumi/pulumi-terraform/blob/master/README.md for a description of the overall structure and process of adding a new provider using the bridge and https://github.com/pulumi/pulumi-aws/blob/master/resources.go for a specific example.
  • a

    adventurous-wire-92385

    07/03/2018, 2:14 AM
    šŸ˜ž I'm like 45 minutes into trying to get this building in a container. Does anyone have a Dockerfile that builds from source reliably? Even with
    make ensure
    I'm getting missing go dependencies when I run
    make
    .
  • c

    creamy-potato-29402

    07/03/2018, 2:15 AM
    huh weird.
  • c

    creamy-potato-29402

    07/03/2018, 2:15 AM
    I don’t.
  • c

    creamy-potato-29402

    07/03/2018, 2:15 AM
    by ā€œthisā€ you mean pulumi/pulumi
  • c

    creamy-potato-29402

    07/03/2018, 2:15 AM
    ?
  • a

    adventurous-wire-92385

    07/03/2018, 2:16 AM
    yeah, looks like
    make ensure
    doesn't call
    dep ensure
    .
  • c

    creamy-potato-29402

    07/03/2018, 2:16 AM
    weird, my understanding is that it shoudl.
  • a

    adventurous-wire-92385

    07/03/2018, 2:17 AM
    just added
    dep ensure &&
    in front of
    make ensure && make
    and it definitely got farther. I was going to look at source but I don't want to dig into common.mk for now if I can help it
  • a

    adventurous-wire-92385

    07/03/2018, 2:20 AM
    I'm losing track of every thing I'm having to add though, maybe it was when I was still
    go get ...dep
    instead of
    ...dep/cmd/dep
  • c

    creamy-potato-29402

    07/03/2018, 2:21 AM
    can you share your dockerfile?
  • a

    adventurous-wire-92385

    07/03/2018, 2:21 AM
    and now a bunch of metalinter stuff...
Powered by Linen
Title
a

adventurous-wire-92385

07/03/2018, 2:21 AM
and now a bunch of metalinter stuff...
View count: 1