src/main/java/com/ecs/cicd/DeploymentGroupRequestCreator.java [60:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                .withServiceRoleArn(serviceRole.getRoleArn())
                .withDeploymentStyle(new DeploymentStyle()
                        .withDeploymentOption(DeploymentOption.WITH_TRAFFIC_CONTROL)
                        .withDeploymentType(DeploymentType.BLUE_GREEN))
                .withBlueGreenDeploymentConfiguration(new BlueGreenDeploymentConfiguration()
                        .withTerminateBlueInstancesOnDeploymentSuccess(new BlueInstanceTerminationOption()
                                .withAction(InstanceAction.TERMINATE)
                                .withTerminationWaitTimeInMinutes(5))
                        .withDeploymentReadyOption(new DeploymentReadyOption()
                                .withActionOnTimeout(DeploymentReadyAction.CONTINUE_DEPLOYMENT)))
                .withEcsServices(new ECSService()
                        .withServiceName(serviceName)
                        .withClusterName(clusterName))
                .withLoadBalancerInfo(loadBalancerInfo);

        return MAPPER.convertValue(deploymentGroup, Map.class);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/ecs/cicd/DeploymentGroupRequestCreator.java [102:117]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                .withServiceRoleArn(serviceRole.getRoleArn())
                .withDeploymentStyle(new DeploymentStyle()
                        .withDeploymentOption(DeploymentOption.WITH_TRAFFIC_CONTROL)
                        .withDeploymentType(DeploymentType.BLUE_GREEN))
                .withBlueGreenDeploymentConfiguration(new BlueGreenDeploymentConfiguration()
                        .withTerminateBlueInstancesOnDeploymentSuccess(new BlueInstanceTerminationOption()
                                .withAction(InstanceAction.TERMINATE)
                                .withTerminationWaitTimeInMinutes(5))
                        .withDeploymentReadyOption(new DeploymentReadyOption()
                                .withActionOnTimeout(DeploymentReadyAction.CONTINUE_DEPLOYMENT)))
                .withEcsServices(new ECSService()
                        .withServiceName(serviceName)
                        .withClusterName(clusterName))
                .withLoadBalancerInfo(loadBalancerInfo);

        return MAPPER.convertValue(deploymentGroup, Map.class);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



