简体   繁体   中英

Start a script on windows ec2 instance through api

I am using the AWS .net sdk to create and manage windows EC2 instances. I need the ability to start a script on the instance. This needs to be run not just on startup but anytime we need. There could be more than 10 instances running at once, so its cumbersome to remote in and start the scripts manually.

Looking at the EC2 System Manager api , I see the SendCommand action but I am not sure how to access that from the .net sdk.

The AWS SDK for .Net has a AmazonSimpleSystemsManagementClient .

Call the SendCommand() method on the client.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM