Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deployment options using Amazon Lightsail?

We're looking to host a number of small projects on Amazon Lightsail. For larger projects we use Codepipeline to manage deployments from github.

Is there a similar option available to push deployments from github to a lightsail instance for deployments. I've had a look around and pipeline does not seem to work.

Is it possible to use AWS CodePipeline with Lightsail?

Are there any good deployment options for lightsail or should we look at something more basic such as

https://github.com/markomarkovic/simple-php-git-deploy

Many thanks for the advice!

like image 411
MrTomTom Avatar asked Apr 19 '18 02:04

MrTomTom


1 Answers

I recently had the same challenge and got it working.

It is possible to use CodePipeline for fetching the source code and building the application with CodeBuild. The deployment of the application can be done with CodeDeploy.

For CodeDeploy, it is necessary to register the Lightsail Instance as an on-premise instance. On the instance itself the CodeDeploy agent needs to be installed and configured.

I have written a post about how to set this up on my blog.

like image 163
Jens Eickmeyer Avatar answered Oct 06 '22 21:10

Jens Eickmeyer