2016-08-15 22:13:17 LifecycleEvent - BeforeInstall
2016-08-15 22:13:17 Script - scripts/deregister_from_elb.sh
2016-08-15 22:13:17 [stderr]Running AWS CLI with region: ap-southeast-2
2016-08-15 22:13:17 [stderr]Started deregister_from_elb.sh at 2016-08-15 22:13:17
2016-08-15 22:13:17 [stderr]Checking if instance i-02a0065a747a65048 is part of an AutoScaling group
2016-08-15 22:13:18 [stderr]Found AutoScaling group for instance i-02a0065a747a65048: xeromail-codedeploysample-web-asg
2016-08-15 22:13:18 [stderr]Checking that installed CLI version is at least at version required for AutoScaling Standby
2016-08-15 22:13:18 [stderr]Checking minimum required CLI version (1.10.55) against installed version (1.10.56)
2016-08-15 22:13:18 [stderr]Attempting to put instance into Standby
2016-08-15 22:13:18 [stderr]Checking if this instance has already been moved in the Standby state
2016-08-15 22:13:18 [stderr]Checking to see if ASG xeromail-codedeploysample-web-asg will let us decrease desired capacity
2016-08-15 22:13:18 [stderr]Putting instance i-02a0065a747a65048 into Standby
2016-08-15 22:13:19 [stdout]{
2016-08-15 22:13:19 [stdout] "Activities": [
2016-08-15 22:13:19 [stdout] {
2016-08-15 22:13:19 [stdout] "Description": "Moving EC2 instance to Standby: i-02a0065a747a65048",
2016-08-15 22:13:19 [stdout] "AutoScalingGroupName": "xeromail-codedeploysample-web-asg",
2016-08-15 22:13:19 [stdout] "ActivityId": "d80e1e58-6e96-4f55-975e-f82b33005a72",
2016-08-15 22:13:19 [stdout] "Details": "{\"Subnet ID\":\"subnet-72bb2f17\",\"Availability Zone\":\"ap-southeast-2a\"}",
2016-08-15 22:13:19 [stdout] "StartTime": "2016-08-15T22:13:17.269Z",
2016-08-15 22:13:19 [stdout] "Progress": 50,
2016-08-15 22:13:19 [stdout] "Cause": "At 2016-08-15T22:13:17Z instance i-02a0065a747a65048 was moved to standby in response to a user request, shrinking the capacity from 3 to 2.",
2016-08-15 22:13:19 [stdout] "StatusCode": "InProgress"
2016-08-15 22:13:19 [stdout] }
2016-08-15 22:13:19 [stdout] ]
2016-08-15 22:13:19 [stdout]}
2016-08-15 22:13:19 [stderr]Waiting for move to Standby to finish
2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `=': not a valid identifier
2016-08-15 22:13:19 [stderr]/opt/codedeploy-agent/deployment-root/c86ed025-5edf-4da5-86bc-bc7e2c6b285b/d-IFJQ8CQYG/deployment-archive/scripts/common_functions.sh: line 322: local: `1': not a valid identifier
2016-08-15 22:13:19 [stderr]Checking 60 times, every seconds, for instance i-02a0065a747a65048 to be in state Standby
2016-08-15 22:13:19 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:19 [stderr]sleep: missing operand
2016-08-15 22:13:19 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:20 [stderr]sleep: missing operand
2016-08-15 22:13:20 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: EnteringStandby
2016-08-15 22:13:20 [stderr]sleep: missing operand
2016-08-15 22:13:20 [stderr]Try 'sleep --help' for more information.
2016-08-15 22:13:20 [stderr]Instance is currently in state: Standby
2016-08-15 22:13:20 [stderr]Instance is in standby