I am currently working towards CircleCI to automate deployments to our staging environment whenever we create tag in Github. The staging servers already have codebase from last version. I am stuck at the part where AWS Codedeploy unzips the files at specified location.
Recently AWS announced the file handling support (https://aws.amazon.com/about-aws/whats-new/2017/05/aws-codedeploy-adds-file-handling-support/) for Codedeploy to overwrite the existing files if necessary and the API has been updated to cater this as well (http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html see --file-exists-behavior section). I have added this option in my circle.yml
file and I’ve started getting “Missing AWS CodeDeploy settings for app Magento.” in deployments section.
Want to know if this is supported by CircleCi and if yes, am I using the correct key value pair for this config option. My deployment section of circle.yml
file below:
deployment:
staging:
tag: /[0-9]+(\.[0-9]+)*/
codedeploy:
Magento:
application_root: /
region: ap-southeast-2
file_exists_behaviour: OVERWRITE
revision_location:
revision_type: S3
s3_location:
bucket: application-ci-builds
key_pattern: magento-{SHORT_COMMIT}
deployment_group: Stage
deployment_config: CodeDeployDefault.OneAtATime