default iam profile was not being assigned properly