aws ec2 start-instances
Starts an Amazon EBS-backed instance that you've previously stopped. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To start an Amazon EC2 instance
The following start-instances example starts the specified Amazon EBS-backed instance.
aws ec2 start-instances --instance-ids i-1234567890abcdef0Identify--instance-idsThe IDs of the instances.Its output
{
"StartingInstances": [
{
"InstanceId": "i-1234567890abcdef0",
"CurrentState": {
"Code": 0,
"Name": "pending"
},
"PreviousState": {
"Code": 80,
"Name": "stopped"
}
}
]
}For more information, see Stop and start Amazon EC2 instances in the Amazon EC2 User Guide.
Options
--additional-infoReserved.--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--instance-idsThe IDs of the instances.