Tell me about your experience with Linux hard links vs soft links, and how you apply basic Terraform and Kubernetes concepts in your work.
Implement analyze_infrastructure(links, resources) to classify link records and order resources by dependencies, similar to applying Terraform resources or Kubernetes objects. Return null when a dependency is unknown or cyclic; otherwise return the link classifications and a valid resource order.
def analyze_infrastructure(links, resources):