terraform wants to replace ec2 instances when i simply want to add a rule to a security group – Amazon Web Sevices
I have an ec2 instance defined in terraform along with some security rules. These are the security rules: resource "aws_security_group" "ec2_web" { name = "${var.project_name}_${var.env}_ec2_web" description = "ec2 instances that serve to the load balancer" vpc_id = aws_vpc.main.id } resource…