I have two AWS instances working in high availability. (I'm using keepalived)
I have an Elastic IP associated, everything was a fine.
I used this script so to change the instance IP in case o failover:
#!/bin/bash EIP=126.96.36.199 INSTANCE_ID=i-0bdd8a68eb573fd1a /usr/bin/aws ec2 disassociate-address --public-ip $EIP /usr/bin/aws ec2 associate-address --public-ip $EIP --instance-id $INSTANCE_ID
But now my server has an ipv4 and ipv6. And i cannot do the same for ipv6. Only ipv4.
How can i do the same for ipv6? Since there is no Elastic ipv6?