Last active
January 8, 2019 18:13
-
-
Save anthonybudd/8f0dae9208c0be453c9bdfc5698c4892 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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