This question is a follow up (not a duplicate) of How to add a security group to a running EC2 Instance?. I believe it deserves to have its own answer rather than a comment.
How could I write a one-liner using the AWS CLI to add a security group to an EC2.
Because the annoyance of using the command
aws ec2 modify-instance-attribute --instance-id i-12345 --groups sg-12345 sg-67890
is that it requires to specify all CURRENT and NEW SGs.
So which one-liner can I use to add a security group to the instance's current ones?