I'm getting
╷
│ Error: creating EC2 Instance: InvalidParameterCombination: Network interfaces and an instance-level security groups may not be specified on the same request
│ status code: 400, request id: 97729886-6941-430d-9e6b-86b756710c6b
│
The aws_instance references a aws_launch_template but as far as I know the launch template and instance definition do not have conflicting setting regarding the security groups, I even removed all security group references from both the launch template and instance and I still get the same error.
What else can be the source of this message?