This message was deleted.
s
This message was deleted.
p
How do you mean? Pulumi code? Resources you created with Pulumi or manually created?
h
Resource I created with pulumi. Is there some other way than using dynamic provider? I'm using go and it's not available.
p
If the resource was created with pulumi, you can make changes to the resource script and run
pulumi up
again to deploy the updates
h
Hmmm, it's not a case of: "I deployed some resources through pulumi and now something needs to be changed". It's a case of "I want to do something right after I create/update a resource"
This is documentation from dynamic providers
And basically that's exactly what I need, but it's not available in
go
My use case: I'm creating gcp storage object and there are some files that are created dynamically. I want to delete them after storage object gets created.
p
Oh I see
Have you considered maybe using Channels to implement a Promise on that resource and then do the cleanup after it is resolved?
Also, there is a #CCWP5TJ5U channel which might be more helpful for go-specific issues
l
@helpful-processor-86468 the runtime API as proposed here may be an alternative to dynamic providers for your use case https://github.com/pulumi/pulumi/issues/3901
I have a prototype I'm working on (in go). Send me a DM if you'd like to learn more and give it a try.
Just wanted to follow up and mention that we merged the first PR for the Automation API Go SDK! https://github.com/pulumi/pulumi/pull/4977 It's in alpha and there will be (mostly additive) breaking changes in the coming weeks. There are complete godocs here that you can check out: https://godoc.org/github.com/pulumi/pulumi/sdk/go/x/auto In addition, there are still a bunch of holes that we'll be plugging over the next few weeks. Here's a list of known issues that we're tracking: https://github.com/pulumi/pulumi/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Fautomation-api If you'd like to try it out, you'll need to build pulumi/pulumi as there are CLI changes. We'll cut a CLI release early next week that will make it easier to try all of this out. I'll be updating https://github.com/pulumi/pulumi/issues/3901 with instructions and a call for feedback early next week, but I thought I'd let ya'll know in the mean time in case you're eager to kick the tires. If the feedback on the design is positive, we'll follow up with all of the supported pulumi languages.
👍 1