ingenieux / awseb-deployment-plugin

Jenkins Plugin for AWS Elastic Beanstalk
Apache License 2.0
29 stars 53 forks source link

Zero downtime does not swap correctly #70

Open mirkods opened 7 years ago

mirkods commented 7 years ago

Hi there, congratulation for this awesome plugin.

I'm deploying with zero downtime checked and I'm having this error Environment Staging already exists.

These are the logs before the error:

AWSEB Deployment Plugin Version 0.3.19 (aws-java-sdk version: 1.11.119)
Using region: 'eu-west-1'
Zipping contents of Root File Object (BUILD_NAME) into tmp file awseb-838234532230766593.zip (includes=*/**, excludes=*/.git/,*/test/*)
Uploading file awseb-838234532230766593.zip as s3://DESTINATION.zip
Creating application version project-e6ab510a0036ec8d5b8f988383ff95a2a35f0532 for application Project for path s3://DESTINATION.zip
Created version: project-e6ab510a0036ec8d5b8f988383ff95a2a35f0532
Creating configuration template from application Project with label project-e6ab510a0036ec8d5b8f988383ff95a2a35f0532
Creating environment based on application Project/Staging from version project-e6ab510a0036ec8d5b8f988383ff95a2a35f0532 and configuration template tmp-project-e6ab510a0036ec8d5b8f988383ff95a2a35f0532
Cleaning up temporary file /tmp/awseb-838234532230766593.zip
FATAL: Deployment Failure
com.amazonaws.services.elasticbeanstalk.model.AWSElasticBeanstalkException: Environment Staging already exists. (Service: AWSElasticBeanstalk; Status Code: 400; Error Code: InvalidParameterValue; Request ID: 31f658a3-a8e3-11e7-92c2-0d45ccd86449)

What is going wrong?

Best, Mirko

rednikov commented 6 years ago

+1 spent a lot of time to find a workaround, but unfortunately without result :((((

aldrinleal commented 6 years ago

Zero Downtime is about creating a new environment and replacing the CName. Are you confusing it with perhaps A/B Deployment instead?

aldrinleal commented 6 years ago

Oh crap. Found ZeroDowntime stopped working a while ago. Anyway, I'll be working on it.

icarustechdev commented 5 years ago

@aldrinleal Do you have any news about ZeroDowntime plugin problem?

aldrinleal commented 5 years ago

@icarustechdev CONGRATURATION! Its broken. PR's welcome.