This message was deleted.
# aws
s
This message was deleted.
l
It isn't possible to update any resource in Pulumi except via its constructor, and this automatically-generated ASG is not managed by Pulumi. You need to use the SDK for this.
c
ok.. so would the general process be to do something like: • add the autoscaling group as an output from the stack • after running
pulumi up
, run (something like) `aws autoscaling enable-metrics-collection --auto-scaling-group-name `pulumi stack output autoscalingGroup`` and that would form part of the 'build' script?
b
Yes. Or you could also wrap this in the automation API.
c
could you elaborate on that pls Itay?
b
Sorry, didn’t mean to be overly terse. 🙂 The benefit of the Pulumi automation API is that you can invoke your stack programmatically, reference the output programmatically, and then do something with the output. So in your case, you could create your stack by invoking the API, and then get the output of the stack (the ASG), and then call the AWS SDK with that ASG. An example that we do is we send an email to a user based on the stack output.
You can of course do this in a script as well, and in your case that might be just as easy.
c
no need to apologise 🙂 thanks heaps for the clarification though!