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

    little-river-49422

    02/21/2019, 12:57 PM
    same goes for some azure resources, anyway, I've shown you how to use resource outputs, but name is not an output, since you define it
  • p

    proud-artist-4864

    02/21/2019, 12:58 PM
    that’s what I mean, I can’t get any attribute to use from the resources that I’ve defined for that field, even though it’s guaranteed to be defined because I defined it, so there is no unresolved dependency.
  • l

    little-river-49422

    02/21/2019, 1:40 PM
    check my message
  • l

    little-river-49422

    02/21/2019, 1:40 PM
    use apply
  • l

    little-river-49422

    02/21/2019, 4:21 PM
    hey folks, is there a way to read stack output value from inside pulumi stack? (value from the previous run)?
  • l

    little-river-49422

    02/21/2019, 4:25 PM
    looking at the docs, dont see anything like that
    s
    i
    • 3
    • 2
  • p

    proud-artist-4864

    02/22/2019, 5:44 AM
    apply returns an Output, not a str. So it isn’t resolved until the engine traverses the tree, but the resource name is tested at object creation.
  • l

    little-river-49422

    02/22/2019, 6:29 AM
    well, you probably know resource name beforehand anyway, so just construct it
  • p

    proud-artist-4864

    02/22/2019, 6:36 AM
    lol, the situation I had was: rtb = ec2.RouteTable(“rtb-public”…) subnet = ec2.Subnet(“subnet-a-something…) rtb_assoc = ec2.RouteTableAssociation(“rtb-assoc-public-a-something”…)
    i
    • 2
    • 1
  • p

    proud-artist-4864

    02/22/2019, 6:37 AM
    ideally I wanted: rtb_assoc = ec2.RouteTableAssociation(“rtb-assoc-{}-{}“.format(rtb.resource_name, subnet.resource_name)…
  • p

    proud-artist-4864

    02/22/2019, 6:37 AM
    but “obj.resource_name” is not an attribute.
  • l

    little-river-49422

    02/22/2019, 5:49 PM
    yeah, sorry, dont know much about aws, but unless resource name is generated by aws I dont see a problem 🙂
  • p

    proud-artist-4864

    02/23/2019, 6:48 AM
    Thanks anyway, it’s more an architectural/language issue. pulumi wants you to have a name for each resource at the time they’re initiated, but doesn’t let you use the name until the actual resource is created.
  • b

    boundless-room-36997

    02/23/2019, 2:27 PM
    Hi, what is the state of Pulumi support for Python ? AFAIR Python support is behind the other languages. Has it changed recently ?
  • l

    little-river-49422

    02/23/2019, 4:55 PM
    no, its not 🙂 but its manageable
  • l

    little-queen-12441

    02/23/2019, 6:37 PM
    Hello everyone, I am new to pulumi and I know Python. I looking forward to pulumi with Python. Can you please help me where and how to start?
    w
    l
    • 3
    • 3
  • l

    little-queen-12441

    02/23/2019, 6:38 PM
    Please DM so others will not get disturb
  • p

    proud-artist-4864

    02/24/2019, 12:53 PM
    So far with python I’ve had very little trouble. a few gotchas (using get_x from an async def), some doco bugs (type in route53.Record is the RR type).
    👍 1
  • l

    little-river-49422

    02/24/2019, 3:14 PM
    hey, folks, any ideas how to set defaultMode to 0400? python cannot handle that number, lol
  • l

    little-river-49422

    02/24/2019, 4:38 PM
    ok, appears it expects 400 in octal system, so 256 works
  • l

    little-river-49422

    02/24/2019, 4:38 PM
    but why the hell doesnt it throw when you put 400 into it
  • p

    powerful-elephant-53462

    02/24/2019, 4:39 PM
    Does it need to be an octal literal ? 0o400
  • l

    little-river-49422

    02/24/2019, 4:39 PM
    not necessary
  • l

    little-river-49422

    02/24/2019, 4:39 PM
    256works
  • l

    little-river-49422

    02/24/2019, 4:39 PM
    but 0o400 works as well
  • l

    little-river-49422

    02/24/2019, 4:39 PM
    but its completely not transparent it would work that way
  • w

    white-balloon-205

    02/24/2019, 4:39 PM
    What API are you using where you are seeing this?
  • l

    little-river-49422

    02/24/2019, 4:40 PM
    it just accepts 400 and nothing works 😉
  • l

    little-river-49422

    02/24/2019, 4:40 PM
    creating deployment, specifically mounting volumes
  • l

    little-river-49422

    02/24/2019, 4:40 PM
Powered by Linen
Title
l

little-river-49422

02/24/2019, 4:40 PM
View count: 1