Created
May 30, 2019 22:28
-
-
Save bendubuisson/349cd0646fe12473981c2bcd0904887e to your computer and use it in GitHub Desktop.
This file contains 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
$client = new EcsClient([ | |
'version' => 'latest', | |
'region' => 'ap-southeast-2' | |
]); | |
$client->runTask([ | |
'cluster' => self::CONFIG[$environment]['cluster'], | |
'launchType' => 'FARGATE', | |
'count' => 1, | |
'taskDefinition' => self::CONFIG[$environment]['taskDefinition'], | |
'networkConfiguration' => [ | |
'awsvpcConfiguration' => [ | |
'assignPublicIp' => 'ENABLED', | |
'securityGroups' => self::CONFIG[$environment]['securityGroups'], | |
'subnets' => self::CONFIG[$environment]['subnets'] | |
], | |
], | |
'startedBy' => $event->info | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment