Use consistent S3 bucket and app name
Use consistent S3 bucket and app name

Two more changes were needed:

- Always use ${AWS_APP_VERSION:0:100} for consistency:

aws s3 cp "${DEPLOYMENT_ARCHIVE}" "s3://${AWS_S3_BUCKET}/${AWS_APP_VERSION:0:100}.zip"

- Use the same S3 bucket when reading the previously uploaded app:

aws elasticbeanstalk create-application-version --application-name "${AWS_APP_NAME}" --version-label "${AWS_APP_VERSION:0:100}" --source-bundle "S3Bucket=${AWS_S3_BUCKET},S3Key=${AWS_APP_VERSION:0:100}.zip"

Cheers
codeship/scripts,codeship/scripts