-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiters feature request #52
Comments
By way of demonstration: $getEc2 = [scriptblock]{Get-EC2Instance @($cluster.Instances.InstanceId)}
while((& $getEc2).Instances.State.Name -ne 'running'){
Write-Host "Awaiting startup of all EC2 instances. Sleeping 5..." -ForegroundColor Yellow
Start-Sleep -Seconds 5
}
Write-Host "$(Get-Date) : all nodes report running" -ForegroundColor Blue With a corresponding waiter loop for |
Hello, |
The way to do this in PowerShell is to add an |
CLI usage: aws ec2 start-instances --instance-ids ${instanceId}
aws ec2 wait instance-status-ok --instance-ids ${instanceId} What about behaving similar to the python aws cli? Example Powershell usage: Start-Ec2Instance -InstanceIds ${instanceIds}
Wait-Ec2Instance -Status Ok -InstanceIds ${instanceIds} |
Agreed, why can't the powershell just do what the CLI does? |
We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
PowerShell needs to be revisited once the related .NET SDK issue aws/aws-sdk-net#1336 is implemented. |
Other AWS SDKs such as Python and Ruby have built-in waiters so developers don't have to write loop mechanism that waits until the action is completed.
The text was updated successfully, but these errors were encountered: