0
would like to create a Powershell Script that runs the following steps:
1 - Start an EC2 Instance in AWS (Windows);
2 - Wait for it to be available for remote connection. While waiting, display a waiting message for the user;
3 - Once available, get the Public IP (which will be randomized);
4 - Start Remote Desktop to capture this Instance using this IP;
Steps 1 and 4 I have already managed, but the most difficult are steps 2 and 3. I already looked here at Stackoverflow and also did not find.
If anyone has any ideas, I’d be very grateful.
Hugs
As for step two, I can’t help you, but on step three, take a look at this one link
– lazyFox
Thank you, but the public IP address, would be the EC2 instance on Amazon Web Service, and the Script would run on the machine of the user that would capture it via Remote Desktop.
– Marco Duarte
Every time Stops and Starts the Instance, it takes a different public IP.
– Marco Duarte
You’re using the aws cli?
– Tom Melo
Yes, currently version 1.11.162
– Marco Duarte