It seems that your instance is EC2 Classic so you cannot change the security group of EC2 classic. Here first you need to migrate your instance to EC2-VPC and after that, you can change the security group whenever necessary.
Hope this helps!
Do checkout AWS Online training to learn more about AWS.
You can refer to the below video tutorial to know more about EC2 instances.