EC2: Waiting until a new instance is in running state

前端 未结 6 2096
死守一世寂寞
死守一世寂寞 2021-02-19 23:33

I would like to create a new instance based on my stored AMI.

I achieve this by the following code:

RunInstancesRequest rir = new RunInstancesRequest(ima         


        
6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-19 23:51

    Go use Boto3's wait_until_running method:

    http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Instance.wait_until_running

提交回复
热议问题