I have a PHPproject hosted in Github and Im trying to setup a Continuous Integration using AWS Codepipeline and ElasticBeanstalk.
So far, Im able to get the repository contents from github and deploy it to ElasticBeanstalk. But I need to run a shell script before the deployment that will update a config.json file and also update a environment variable.
This is what Im trying to accomplish in the Pipeline:
- Get the project files from Github (done)
- Run a shell script that will update a config.json file in the project
- Run a shell script that will set a environment variable in ElasticBeanstalk
- Deploy to ElasticBeanstalk (done)
Any ideas of how I can get this working?
thanks