sparse-intern-71089
11/24/2020, 8:12 PMlittle-cartoon-10569
11/24/2020, 8:16 PMpulumi up --diff
and grep for the changed field. Undoubtedly there's an equivalent for automation-api code which would also work...future-nail-59564
11/24/2020, 8:18 PMfuture-nail-59564
11/24/2020, 8:20 PMlittle-cartoon-10569
11/24/2020, 8:24 PMdiff
yet, but you could still get the fact that the password had changed from the UpResult.stdout
property.little-cartoon-10569
11/24/2020, 8:25 PMfuture-nail-59564
11/24/2020, 8:39 PMUpResult.stdout
is this and it’s not much verbose! 😉 And what is the Automation API exactly? Is it an API for running pulumi stacks? It appears to me as something external to a stack and I’m hoping to stay within the stack boundary. We already have everything set up for running the stack externally, based on Git that triggers a CI/CD pipeline and runs the stacks.little-cartoon-10569
11/24/2020, 8:40 PMpulumi
from the command line: you just run your golang or nodejs program, and Pulumi is invoked from within it.little-cartoon-10569
11/24/2020, 8:41 PMpulumi up --yes
to yourStackApp
or whatever, and everything else remains the same.future-nail-59564
11/24/2020, 8:41 PMlittle-cartoon-10569
11/24/2020, 8:41 PMfuture-nail-59564
11/24/2020, 8:44 PMlittle-cartoon-10569
11/24/2020, 8:45 PMfuture-nail-59564
11/24/2020, 8:45 PMfuture-nail-59564
11/24/2020, 8:46 PMlittle-cartoon-10569
11/24/2020, 8:49 PMfuture-nail-59564
11/24/2020, 8:50 PMfuture-nail-59564
11/24/2020, 8:51 PMlittle-cartoon-10569
11/24/2020, 8:51 PMlittle-cartoon-10569
11/24/2020, 8:52 PMComponentResource
.little-cartoon-10569
11/24/2020, 8:52 PMfuture-nail-59564
11/24/2020, 8:55 PMfuture-nail-59564
11/24/2020, 9:38 PMComponentResource
(or `CustomResource`/`Resource`) really looks promising, but I can’t find any simple examples of how to do that… I’m trying to figure it out from the source code, but that’s not trivial… 🤔little-cartoon-10569
11/24/2020, 9:39 PMfuture-nail-59564
11/24/2020, 9:39 PMlittle-cartoon-10569
11/24/2020, 9:40 PMopts
.little-cartoon-10569
11/24/2020, 9:43 PMlittle-cartoon-10569
11/24/2020, 9:45 PMconst machine1 = new EncryptedInstance("machine1", { /* your args */ }, { provider: yourProvider });
little-cartoon-10569
11/24/2020, 9:47 PMinstnaceArgs
method is not needed. I just did it because there's so many args for an EC2 instance....future-nail-59564
11/24/2020, 10:08 PMComponentResource
is really intended to group child resources into an higher level resource. What I was thinking of creating is really a standalone resource with no underlying provider and no child resources. It would just have one input that would take in the password, it would compare that to current state (not sure how pulumi allows to save/load state though) and it would send an email if input password is different from state. So you see, it’s not really grouping other resources underneath it. Maybe CustomeResource
or just Resource
would be a better fit… I would just connect my user’s password Output into that resource’s Input and that’s it… 🤔future-nail-59564
11/24/2020, 10:10 PMComponentResource
for other things. I could use it to group all my user-related resources into a higher-order user component resource. It would be cleaner and easier to visualize. But I don’t think that’s what I need for sending emails (which is just some side-effect, not a child resource).future-nail-59564
11/24/2020, 10:17 PMlittle-cartoon-10569
11/24/2020, 10:33 PMlittle-cartoon-10569
11/24/2020, 10:34 PMfuture-nail-59564
11/24/2020, 10:35 PMlittle-cartoon-10569
11/24/2020, 10:47 PMlittle-cartoon-10569
11/24/2020, 10:47 PMlittle-cartoon-10569
11/24/2020, 10:53 PMfuture-nail-59564
11/24/2020, 11:23 PMlittle-cartoon-10569
11/24/2020, 11:24 PM