Skip to content

aws-ha-update gets wrong instance-id #104

@mtb-xt

Description

@mtb-xt

Hello.

For some reason the script adds an extra " sign and next commands are failing because of that:

[user@shinkiro aws-ha-release]$ ./aws-ha-release.sh -a prod_media_asg -r ap-southeast-2 -t 10 -i 400 
The list of Instances in Auto Scaling Group prod_media_asg that will be terminated is below:
i-670d77b9"
i-2fa11df0"
i-1da11dc2"
i-2e0278f0"
prod_media_asg has reached a desired-capacity of 5. aws-ha-release.sh can now remove an Instance from service.
Instance i-670d77b9" will now be deregistered from ELBs "prod-media-elb."

A client error (InvalidInstance) occurred when calling the DeregisterInstancesFromLoadBalancer operation: InvalidInstance found in [i-670d77b9"]. Invalid id: "i-670d77b9"" (Service: AmazonEC2; Status Code: 400; Error Code: InvalidInstanceID.Malformed; Request ID: 367c7041-5d0f-4c79-90bf-7a00f48761f0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions