EBS image is getting recreated when trying to update security groups for EC2

When updating security groups for EC2, the EBS image is getting recreated (EBS is getting destroyed during terraform plan and trying to create new one). This works through console but not sure why I am not able to update through terraform script. Could you please help me. Thanks in advance!