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
python
  • l

    little-river-49422

    02/05/2019, 9:22 PM
    nah, no haste at this point in time
  • l

    little-river-49422

    02/05/2019, 9:23 PM
    you guys have some sort of marketing stuff? i'm looking to host 2 meetups, really want to bring this stuff up
  • i

    incalculable-sundown-82514

    02/05/2019, 9:24 PM
    yeah! our marketing page is https://www.pulumi.com/. we’d love to throw some Pulumi stuff your way too if you’re hosting meetups! 😄
  • l

    little-river-49422

    02/05/2019, 9:29 PM
    added pulumi tag on SO to my watch list 😉
  • l

    little-river-49422

    02/05/2019, 9:37 PM
    okay, thanks for all the help. night time for me. bye
  • i

    incalculable-sundown-82514

    02/05/2019, 9:41 PM
    no problem!
  • a

    adamant-restaurant-73893

    02/05/2019, 9:41 PM
    super happy to help you with meetups - just DM me, and we can provide swag etc.
    😛artypus: 1
  • l

    little-river-49422

    02/06/2019, 7:50 AM
    another small question. any reason deletes are serial?
    w
    • 2
    • 1
  • l

    little-river-49422

    02/06/2019, 7:50 AM
    i mean, if everything depends on everything it makes sense, but if not?
  • l

    little-river-49422

    02/06/2019, 8:43 AM
    ok, i think I need somebody smart to explain how this bit works: https://pulumi.io/reference/pkg/python/pulumi_azure/core/#pulumi_azure.core.GetResourceGroupResult
  • l

    little-river-49422

    02/06/2019, 8:44 AM
    https://github.com/pulumi/pulumi-azure/blob/master/sdk/python/pulumi_azure/core/get_resource_group.py#L34 this kinda suggest I need to use get_resource_group, not getresourcegroupresult
  • l

    little-river-49422

    02/06/2019, 8:47 AM
    but I have to await it, which kinda suggests this is not something I should be using
    w
    i
    • 3
    • 5
  • l

    little-river-49422

    02/06/2019, 2:51 PM
    also, default values in Pulumi.yaml seem to not work?
    w
    • 2
    • 11
  • l

    little-river-49422

    02/06/2019, 3:04 PM
    it always prompts me for new ones
  • l

    little-river-49422

    02/06/2019, 6:59 PM
    ok, one weird question, is there a way to manipulate config values at runtime?
  • l

    little-river-49422

    02/06/2019, 6:59 PM
    i mean, set config value to some other value
  • i

    incalculable-sundown-82514

    02/06/2019, 7:01 PM
    You can always do something like this:
    config = pulumi.Config("myconfig")
    if config.require_bool("do_something_special"):
        magic_value = config.require("special_config")
    else:
        magic_value = "not special value"
    Is that what you mean?
  • i

    incalculable-sundown-82514

    02/06/2019, 7:01 PM
    pulumi.Config
    itself is read-only, but it’s just data - you can always supplement it with your own values at runtime if you’d like
  • l

    little-river-49422

    02/06/2019, 7:02 PM
    yeah, I'm just not confident enough with my python skills 😉 i understand I can create a variable with whatever value I like, not sure how do I share it between everything without calculating it every time i need it
  • l

    little-river-49422

    02/06/2019, 7:15 PM
    my biggest challenge so far - how to debug whats actually failing
  • l

    little-river-49422

    02/06/2019, 7:16 PM
    config.get('location') or 'westeurope'
    this supposed to work?
  • i

    incalculable-sundown-82514

    02/06/2019, 7:16 PM
    yes, that should work, is it not?
  • i

    incalculable-sundown-82514

    02/06/2019, 7:17 PM
    config.get
    returns
    None
    if the config wasn’t provided
  • l

    little-river-49422

    02/06/2019, 7:17 PM
    i'm not sure, something is failing 🙂
  • l

    little-river-49422

    02/06/2019, 7:17 PM
    Diagnostics:
      pulumi:pulumi:Stack (azure-py-kubernetes-aks-branch-test):
        error: Program failed with an unhandled exception:
        error: NoneType: None
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    
    error: an error occurred while advancing the preview
  • l

    little-river-49422

    02/06/2019, 7:17 PM
    this is the most common error I'm getting 🙂
  • i

    incalculable-sundown-82514

    02/06/2019, 7:18 PM
    that’s bizarre! can you post a code sample for this?
  • l

    little-river-49422

    02/06/2019, 7:18 PM
    ugh, its a bit complicated, i do have 3 files already, code is split between them
  • l

    little-river-49422

    02/06/2019, 7:19 PM
    i can give you all 3 files, but that would take some time to figure out what is wrong?
  • i

    incalculable-sundown-82514

    02/06/2019, 7:19 PM
    no worries! Can you post the output of running
    pulumi preview -d
    , then?
Powered by Linen
Title
i

incalculable-sundown-82514

02/06/2019, 7:19 PM
no worries! Can you post the output of running
pulumi preview -d
, then?
View count: 1