Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ec2->client->runInstances([
- 'ImageId' => ‘****',
- 'MinCount' => 1,
- 'MaxCount' => 1,
- 'InstanceType' => $resource->calculate(),
- 'UserData' => base64_encode("#!/bin/bash \r\n echo ECS_CLUSTER=convertclustr >> /etc/ecs/ecs.config"),
- 'IamInstanceProfile' => [
- 'Arn' => ‘*****'
- ],
- 'KeyName' => ‘****'
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement