@@ -29,9 +29,10 @@ def main():
29
29
print (f"S3_ARTIFACTS_BUCKET = { S3_ARTIFACTS_BUCKET } \n " )
30
30
print (f"S3_ARTIFACTS_OBJECT { S3_ARTIFACTS_OBJECT } \n " )
31
31
32
- available_execution_types = ["deploy" , "cutover" , "full" , "rollback" , "redeploy" ]
32
+ available_execution_types = ["deploy" , "cutover" , "full" , "rollback" ]
33
33
execution_type : str = str (sys .argv [1 ])
34
34
35
+
35
36
if execution_type not in available_execution_types :
36
37
print ("Not valid execution type argument: " + execution_type )
37
38
print (
@@ -101,8 +102,7 @@ def main():
101
102
try :
102
103
print ("New release deployment initiated." )
103
104
start_3 = time .time ()
104
- deploy_release .release_deployment (S3_ARTIFACTS_OBJECT , S3_ARTIFACTS_BUCKET , BLUE_ENV_NAME ,
105
- BEANSTALK_APP_NAME , boto_authenticated_client )
105
+ deploy_release .release_deployment (BLUE_ENV_NAME , BEANSTALK_APP_NAME , boto_authenticated_client )
106
106
print (f"New release deployment has finished successfully!\n \
107
107
\t It took: { time .time () - start_3 } seconds\n " )
108
108
except Exception as err :
@@ -189,20 +189,6 @@ def main():
189
189
sys .exit (1 )
190
190
print ("Rollback has finished successfully!" )
191
191
192
- # Start redeploy phase
193
- if execution_type == "redeploy" :
194
- try :
195
- print ("Initiating Re-Deployment of the previous version." )
196
- deploy_release .release_deployment (S3_ARTIFACTS_OBJECT , S3_ARTIFACTS_BUCKET , BLUE_ENV_NAME ,
197
- BEANSTALK_APP_NAME , boto_authenticated_client , create_app_version = False )
198
- except Exception as err :
199
- print ("Re-Deployment of the previous version has failed!" )
200
- print (("Error: " + str (err )))
201
- e = sys .exc_info ()[0 ]
202
- print (e )
203
- traceback .print_exc ()
204
- sys .exit (1 )
205
-
206
192
print ("Deployment has finished successfully!" )
207
193
print (f"The process took: { round ((time .time () - starting_time ), 2 )} seconds" )
208
194
0 commit comments