resource "aws_iam_instance_profile" "phantom_instance_profile" { name = "xdr-phantom-instance-profile" path = "/instance/" role = aws_iam_role.phantom_instance_role.name } resource "aws_iam_role" "phantom_instance_role" { name = "xdr-phantom-instance-role" path = "/instance/" assume_role_policy = <