Skip to content

Instantly share code, notes, and snippets.

@anthonybudd
Last active January 8, 2019 18:13
Show Gist options
  • Select an option

  • Save anthonybudd/8f0dae9208c0be453c9bdfc5698c4892 to your computer and use it in GitHub Desktop.

Select an option

Save anthonybudd/8f0dae9208c0be453c9bdfc5698c4892 to your computer and use it in GitHub Desktop.
<?php
$client = Aws\Ec2\Ec2Client::factory([
'region' => 'eu-west-1',
'version' => '2016-11-15',
'credentials' => [
'key' => 'YOUR KEY',
'secret' => 'YOUR SECRET',
]
]);
$result = $client->startInstances([
'InstanceIds' => array('i-09a6a7129c9935ed9')
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment