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

    04/02/2019, 12:21 PM
    if that is true, how do I create stuff that's outside of pulumi from resource outputs?
    i
    p
    • 3
    • 62
  • b

    billowy-laptop-45963

    04/02/2019, 5:23 PM
    When will ComponentResources be supported in python?
    i
    l
    p
    • 4
    • 15
  • a

    alert-monitor-28534

    04/03/2019, 4:16 AM
    How does one use this: https://pulumi.io/reference/pkg/python/pulumi_openstack/networking/#pulumi_openstack.networking.get_network ? I'm trying to get the ID of the external network for my router but can't seem to get that.
  • l

    little-river-49422

    04/03/2019, 6:23 PM
    hey, another question, is there a way to detect pulumi is doing destroy now? or destroy is not being handled by the code at all? the reason for asking is custom things created during
    pulumi up
    . how do I clean those up?
  • b

    billowy-laptop-45963

    04/04/2019, 4:55 PM
    Is there a list of what's missing in the python implementation of pulumi vs typescript?
  • l

    little-river-49422

    04/04/2019, 9:36 PM
    folks? my previous question. anyone, please?
    i
    p
    • 3
    • 3
  • l

    little-river-49422

    04/18/2019, 11:47 AM
    hey, one stupid question, anyway to wait for kubernetes job to finish in pulumi?
    w
    • 2
    • 1
  • f

    fast-whale-9064

    04/18/2019, 5:49 PM
    I’m trying to properly order route53 record creation using
    .apply
    but it doesn’t work like I would expect:
    record = route53.Record(dns_name,
                            name=dns_name,
                            records=[new_instance.private_ip],
                            ttl=60,
                            type="A",
                            zone_id="..."")
    
    dns_name = record.name.apply(lambda n: n)
    yields
    dns_name
    value of
    <pulumi.output.Output object at 0x110e60160>
    . What am I missing?
    i
    • 2
    • 14
  • s

    straight-napkin-70642

    04/29/2019, 6:07 PM
    Hi, I'm learning Pulumi on Python, so I made an example using the Python "raw" API to deploy a Lambda served by API Gateway! 🙂 https://github.com/gmiretti/pulumi-aws-py-lambda-api-gateway I could translate examples/aws-ts-serverless-raw but I saw it after the fact 😬 Probably I'm gonna translate to Python another examples of pulumi-aws from pulumi/examples, if they aren't available yet. In that case, pls let me know.
    🎉 1
    b
    • 2
    • 2
  • g

    gorgeous-egg-16927

    05/01/2019, 2:54 AM
    message has been deleted
    👍 2
  • l

    little-river-49422

    05/04/2019, 2:34 PM
    hey folks, found what looks like a bug:
    Diagnostics:
      pulumi:pulumi:Stack (azure-py-kubernetes-develop):
        error: Program failed with an unhandled exception:
        error: Traceback (most recent call last):
          File "/usr/local/bin/pulumi-language-python-exec", line 85, in <module>
            loop.run_until_complete(coro)
          File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
            return future.result()
          File "/usr/local/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 38, in run_in_stack
            await RPC_MANAGER.unhandled_exeception()
          File "/usr/local/lib/python3.6/site-packages/pulumi/runtime/rpc_manager.py", line 68, in rpc_wrapper
            result = await rpc_function(*args, **kwargs)
          File "/usr/local/lib/python3.6/site-packages/pulumi/runtime/resource.py", line 232, in do_register
            await rpc.resolve_outputs(res, props, resp.object, resolvers)
          File "/usr/local/lib/python3.6/site-packages/pulumi/runtime/rpc.py", line 312, in resolve_outputs
            input_prop = await serialize_property(value, [])
          File "/usr/local/lib/python3.6/site-packages/pulumi/runtime/rpc.py", line 135, in serialize_property
            future_return = await asyncio.ensure_future(value)
        RuntimeError: cannot reuse already awaited coroutine
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
  • l

    little-river-49422

    05/04/2019, 2:34 PM
    my code works fine with 0.17.4, fails with this error with 0.17.9
  • l

    little-river-49422

    05/04/2019, 3:00 PM
    failing:
    root@b27e0e37a4b9:/vsts# python3 --version
    Python 3.6.5
    root@b27e0e37a4b9:/vsts# pulumi version
    v0.17.9
    working:
    root@544f76624d29:/pulumi# python3 --version
    Python 3.6.7
    root@544f76624d29:/pulumi# pulumi version
    v0.17.4
    could it be python version related?
  • l

    little-river-49422

    05/05/2019, 9:45 AM
    also, whats the point of protecting resources if I cant recreate the stack because of them?
  • l

    little-river-49422

    05/05/2019, 3:16 PM
    another thing, appears pulumi is freezing when it is missing one of the config parameters? somehow its not prompting for them? because in azure devops when you get a prompt for any reason build instantly fails with an error message: "not a tty" or something like that. but builds with pulumi just hang forever
  • l

    little-river-49422

    05/05/2019, 8:19 PM
    also, is there a way to force pulumi to just update existing resources and "claim" them? i dont care how their state changes. in fact i know it doesnt
  • p

    proud-artist-4864

    05/06/2019, 9:17 AM
    “not a tty” means that there was an attempt by something to prompt, but because stdin wasn’t connected to something that could accept input, the attempt failed
  • p

    proud-artist-4864

    05/06/2019, 9:18 AM
    So what would end up happening (I don’t know azure API) is that the API is waiting for input, but the pulumi engine can’t give it. The engine is waiting for the API to complete, the API is waiting for input. End result: hang
  • l

    little-river-49422

    05/06/2019, 1:22 PM
    no, please re-read it. 🙂
  • i

    icy-dress-83371

    05/07/2019, 9:27 PM
    anyone have issues with
    <https://github.com/pulumi/examples/tree/master/azure-py-aks>
    revolving around the linux_profile and SSHKEY variable? I am getting
    linux_profile.0.ssh_key.0: expected object, got slice
    l
    • 2
    • 7
  • s

    stocky-spoon-28903

    05/07/2019, 9:46 PM
    @icy-dress-83371 that is definitely a bug
  • f

    fast-magician-55948

    05/09/2019, 12:26 PM
    (venv) C:\Users\perry\dev\pulumi>pulumi up
    Previewing update (dev):
    
         Type                 Name            Plan     Info
         pulumi:pulumi:Stack  gcp-python-dev           1 error
    
    Diagnostics:
      pulumi:pulumi:Stack (gcp-python-dev):
        error: Failed to locate 'python3' on your PATH. Have you installed Python 3.6 or greater?
    s
    • 2
    • 13
  • f

    fast-magician-55948

    05/09/2019, 12:27 PM
    I'm following the first steps - I do have Python 3.7 installed - I was able to do pip step etc. Is it perhaps because the path is python37?
  • s

    straight-napkin-70642

    05/09/2019, 2:46 PM
    Question, how can I trigger Resource refresh explicitly? I thought that using:
    __opts__=ResourceOptions(depends_on=[another_resource])
    Any change in opts or another_resource would trigger a refresh.
  • l

    little-river-49422

    05/09/2019, 2:48 PM
    well, you have to change something in the resource manifest
  • l

    little-river-49422

    05/09/2019, 2:49 PM
    i thought the same initially, but not, its only for chaining (which is extremely stupid if you ask me)
  • s

    straight-napkin-70642

    05/09/2019, 2:51 PM
    I deleted a resource (resource1) so I updated
    __opts__=ResourceOptions(depends_on=[resource1,resource2])
    for
    __opts__=ResourceOptions(depends_on=[resource2])
    and there was no refresh in this resource
  • l

    little-river-49422

    05/09/2019, 3:04 PM
    well, because resource manifest didnt change, you only altered pulumi resource metadata
    👍 1
  • s

    straight-napkin-70642

    05/09/2019, 3:20 PM
    ok, I'm confused how to proceed when I had to remove a dependency to update properly. Should I remove the dependency and change manifest of the resource to delete first, update and then delete it?
  • l

    little-river-49422

    05/09/2019, 3:41 PM
    well, i dont really understand the question. because in pulumi there is no such thing as a dependency, unfortunately. to update the resource pulumi should detect a change (either in desired state or in current state with
    pulumi refresh
    )
Powered by Linen
Title
l

little-river-49422

05/09/2019, 3:41 PM
well, i dont really understand the question. because in pulumi there is no such thing as a dependency, unfortunately. to update the resource pulumi should detect a change (either in desired state or in current state with
pulumi refresh
)
View count: 1