corley / phing-aws
A set of tasks for AWS integration with Phing
Installs: 9 820
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- aws/aws-sdk-php: ~3
- phing/phing: ~2
Requires (Dev)
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-12-21 19:05:18 UTC
README
A group of task in order to integrate Phing with AWS.
ElasticBeanstalk
Deploy your bundle in AWS ElasticBeanstalk
<project> <taskdef name="beanstalk" classname="Corley\Phing\BeanstalkTask" /> <target name="deploy" depends="upload"> <echo msg="Deploy application '${APP_NAME}' on ElasticBeanstalk using name '${BUNDLE_NAME}'" /> <beanstalk key="${amazon.key}" secret="${amazon.secret}" region="${amazon.region}" application="${APP_NAME}" version="${BUNDLE_NAME}" bucket="${amazon.bucket}" object="${BUNDLE_NAME_ZIP}" /> </target> </project>
CodeDeploy
Deploy your bundle in AWS CodeDeploy
<project> <taskdef name="codedeploy" classname="Corley\Phing\CodeDeployTask" /> <target name="deploy" depends="upload"> <echo msg="Deploy application '${APP_NAME}' with CodeDeploy using name '${BUNDLE_NAME}'" /> <codedeploy key="${amazon.key}" secret="${amazon.secret}" region="${amazon.region}" application="${APP_NAME}" version="${BUNDLE_NAME}" bucket="${amazon.bucket}" object="${BUNDLE_NAME_ZIP}" /> </target> </project>
Upload on S3
<project> <taskdef name="s3" classname="Corley\Phing\S3PutTask" /> <target name="upload" description="Deploy production bundle to S3" depends="bundle"> <echo msg="Upload '${BUNDLE_NAME_ZIP}' on S3 buckey: '${amazon.bucket}' using key: '${amazon.key}'" /> <s3 key="${amazon.key}" secret="${amazon.secret}" bucket="${amazon.bucket}" source="${BUNDLE_NAME_ZIP}" object="${BUNDLE_NAME_ZIP}" /> </target> </project>