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

    boundless-monkey-50243

    09/02/2018, 3:42 PM
    (which I've done, for now)
  • b

    big-piano-35669

    09/02/2018, 3:42 PM
    Yeah for multiple properties, that's the way to go.
  • b

    boundless-monkey-50243

    09/02/2018, 3:43 PM
    nods
  • b

    boundless-monkey-50243

    09/02/2018, 3:43 PM
    I'm building my top-level script at the moment, so it has some very hairy outputs from other modules I've written - DNS root zone, VPC, etc. etc. - that's why it took me so long to run into that one
  • b

    big-piano-35669

    09/02/2018, 3:43 PM
    Thanks for the comments on the issue, I'll definitely be looking shortly and will comment back there. 👍
  • b

    boundless-monkey-50243

    09/02/2018, 3:43 PM
    👍
  • b

    boundless-monkey-50243

    09/02/2018, 3:43 PM
    I very much like how predictable using Node modules is downstream though
    b
    • 2
    • 11
  • b

    boundless-monkey-50243

    09/02/2018, 3:44 PM
    I worry about end users wrapping Pulumi resources into classes though
  • b

    boundless-monkey-50243

    09/02/2018, 3:44 PM
    Something about it feels a little nonintuitive; I ended up just writing functions that return Pulumi objects
  • c

    creamy-potato-29402

    09/02/2018, 6:22 PM
    @boundless-monkey-50243 FWIW I worry about that too, which is why the first rev of the k8s Helm/YAML classes were actually pure functions. @white-balloon-205 then yelled at me for this ( 🙂 ) and now we have classes.
    b
    • 2
    • 105
  • c

    creamy-potato-29402

    09/02/2018, 6:22 PM
    internally we use classes everywhere so for us at least I suppose it is better that we are consistent.
  • b

    boundless-monkey-50243

    09/02/2018, 9:52 PM
    Are there Pulumi plans for something akin to a Terraform provisioner, i.e. "do this once a resource is created/modified"? Being able to gate execution on (say) the completed setup of service X, which service Y depends upon, is pretty important.
  • r

    rough-oil-1458

    09/02/2018, 9:53 PM
    I think provisioners are a bad idea.
  • b

    boundless-monkey-50243

    09/02/2018, 9:53 PM
    What's your better alternative?
  • r

    rough-oil-1458

    09/02/2018, 9:54 PM
    make your instances handle events
  • b

    boundless-monkey-50243

    09/02/2018, 9:54 PM
    In CloudFormation, resource signals and userdata take care of it, but Pulumi and Terraform don't support either.
  • c

    creamy-potato-29402

    09/02/2018, 9:54 PM
    You can definitely gate execution of stuff on completion of resources. What are you looking to do?
  • b

    boundless-monkey-50243

    09/02/2018, 9:55 PM
    @creamy-potato-29402 I need to bootstrap the world. In this case, that means uploading cookbooks for chef-zero (I use minimart for this) into S3 after the S3 bucket is created, then to provide the location of those cookbooks to instances downstream.
  • b

    boundless-monkey-50243

    09/02/2018, 9:55 PM
    (as an aside I think the documentation around "immutable infrastructure" architecture is kind of misleading; most of these that I've found still use a CM tool--we use Chef Zero, but there are arguments for others--both for building that infrastructure and for performing last-mile configuration on a newly started machine.)
  • b

    boundless-monkey-50243

    09/02/2018, 9:55 PM
    @rough-oil-1458 I'm not referring only to instances here, either.
  • b

    boundless-monkey-50243

    09/02/2018, 9:56 PM
    @creamy-potato-29402 So, ideally, I would have a way to execute A Thing that pushes our minimart contents to S3 (whether or not it had to create the S3 bucket), then continue on our merry way with setting up EC2 instances after that completed.
  • c

    creamy-potato-29402

    09/02/2018, 9:56 PM
    On phone but have you seen this https://twitter.com/funcofjoe/status/1028315379641118720?s=21
  • b

    boundless-monkey-50243

    09/02/2018, 9:57 PM
    I haven't, but not sure how that applies here?
  • b

    boundless-monkey-50243

    09/02/2018, 9:57 PM
    Like, I was originally looking for an
    onX
    event somewhere on the resource
  • c

    creamy-potato-29402

    09/02/2018, 9:59 PM
    Could be misunderstanding but you can gate continuing on resolution of a promise
  • b

    boundless-monkey-50243

    09/02/2018, 9:59 PM
    The resolution, here, is Pulumi creating an S3 bucket, not my code?
  • c

    creamy-potato-29402

    09/02/2018, 9:59 PM
    Also on phone so fidelity of comms is low
  • c

    creamy-potato-29402

    09/02/2018, 10:00 PM
    You can use .apply to require a resource to complete first
  • c

    creamy-potato-29402

    09/02/2018, 10:00 PM
    Same principle
  • b

    boundless-monkey-50243

    09/02/2018, 10:00 PM
    Oh. OK, awesome
Powered by Linen
Title
b

boundless-monkey-50243

09/02/2018, 10:00 PM
Oh. OK, awesome
View count: 1