https://pulumi.com logo
#aws
Title
# aws
p

plain-arm-32800

09/28/2022, 10:23 AM
Is there a way to stop an ec2 instance using the automation API?
l

little-cartoon-10569

09/28/2022, 7:45 PM
Not using the api itself. An automation-api program can call the AWS SDK, which has functions for this.
🙌 1
p

plain-arm-32800

09/29/2022, 9:05 AM
Thanks tenwit, I ended up using your solution. Although I find the lack of such function strange.
l

little-cartoon-10569

09/29/2022, 7:03 PM
There isn't a Pulumi function to send a HTTP request to an API gateway either... Pulumi is a provisioning tool. It doesn't provide APIs for using the provisioned resources.
2 Views