This paper presents a hierarchical and heterogeneous modeling strategy for cloud infrastructure planning that addresses dependability and cost requirements. It includes a stochastic model generator for automatically creating dependability and cost models, validated through a case study of Moodle on a Eucalyptus platform. The study emphasizes the importance of redundancy mechanisms and provides guidelines for selecting suitable cloud infrastructures based on the proposed evaluations.