Studi Komparatif Kombinasi Terraform-Chef, Terraform-Ansible, dan CloudFormation dalam Otomatisasi Provisioning dan Konfigurasi Web Server pada Platform AWS
DOI:
https://doi.org/10.35746/jtim.v8i4.1248Kata Kunci:
Infrastructure as Code, Terraform, Ansible, CloudFormation, IdempotencyAbstrak
Infrastructure as Code (IaC) is commonly applied in two layers, with Terraform for provisioning and Ansible or Chef for configuration management, while AWS CloudFormation offers a native single-tool approach. No quantitative study has compared these three approaches as two-layer (provisioning and configuration) combinations that include Chef. This study deployed an identical Multi-AZ WordPress site on AWS with Terraform-Chef, Terraform-Ansible, and CloudFormation, 10 times each, measuring deployment time, error rate, and idempotency. Terraform-Chef was significantly faster than Terraform-Ansible in total time (1751.73 vs 1894.24 s; d = 1.79) and configuration time (161.70 vs 269.60 s; d = 2.54), while infrastructure time did not differ. The advantage held after Holm-Bonferroni correction and in timing-marker and outlier sensitivity analyses. CloudFormation had the fastest configuration time (68.20 s) but the slowest infrastructure time, so its total time was not faster than Terraform-Chef. No configuration failures occurred under clean conditions. Both Terraform combinations were idempotent in 5 of 5 iterations, while CloudFormation showed no changes or drift at the declarative layer, a different construct not compared directly. Terraform-Chef excels in configuration speed, while CloudFormation suits AWS-only environments.
Unduhan
Referensi
I. Kumara, M. Garriga, A. U. Romeu, D. Di Nucci, F. Palomba, D. A. Tamburri, and W.-J. van den Heuvel, “The do’s and don’ts of infrastructure code: A systematic gray literature review,” Information and Software Technology, vol. 137, p. 106593, Sept. 2021. https://doi.org/10.1016/j.infsof.2021.106593.
C. Rong, J. Geng, T. J. Hacker, H. Bryhni, and M. G. Jaatun, “OpenIaC: open infrastructure as code - the network is my computer,” Journal of Cloud Computing, vol. 11, p. 12, Dec. 2022. https://doi.org/10.1186/s13677-022-00285-7.
M. Chiari, B. Xiang, G. N. Nedeltcheva, E. Di Nitto, L. Blasi, D. Benedetto, and L. Niculut, “DOML: A new modelling approach to Infrastructure-as-Code,” in Advanced Information Systems Engineering (CAiSE 2023), Lecture Notes in Computer Science, vol. 13901, pp. 297–313, Springer Nature Switzerland, Cham, 2023. https://doi.org/10.1007/978-3-031-34560-9_18.
E. ¨Ozdo˘gan, O. Ceran, and M. T. ¨Ust¨unda˘g, “Systematic analysis of Infrastructure as Code technologies,” Gazi University Journal of Science Part A: Engineering and Innovation, vol. 10, pp. 452–471, Dec. 2023. https://doi.org/10.54287/gujsa.1373305.
I. Byzov, “Terraform vs Ansible: When and how to use infrastructure tools as code,” Technologies and Engineering, vol. 25, no. 6, pp. 11–17, 2024. https://doi.org/10.30857/2786-5371.2024.6.1.
G.-P. Drosos, T. Sotiropoulos, G. Alexopoulos, D. Mitropoulos, and Z. Su, “When your infrastructure is a buggy program: Understanding faults in Infrastructure as Code ecosystems,” Proceedings of the ACM on Programming Languages, vol. 8, pp. 2490–2520, Oct. 2024. https://doi.org/10.1145/3689799.
D. Badalyan and O. Borisenko, “Ansible execution control in Python and Golang for cloud orchestration,” SoftwareX, vol. 19, p. 101126, July 2022. https://doi.org/10.1016/j.softx.2022.101126.
Y. Qiu, P. T. J. Kon, R. Beckett, and A. Chen, “Unearthing semantic checks for cloud Infrastructure-as- Code programs,” in Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles (SOSP 2024), pp. 574–589, Association for Computing Machinery, Nov. 2024. https://doi.org/10.1145/3694715.3695974.
T. Theodoropoulos, L. Rosa, C. Benzaid, P. Gray, E. Marin, A. Makris, L. Cordeiro, F. Diego, P. Sorokin, M. Di Girolamo, P. Barone, T. Taleb, and K. Tserpes, “Security in cloud-native services: A survey,” Journal of Cybersecurity and Privacy, vol. 3, pp. 758–793, Oct. 2023. https://doi.org/10.3390/jcp3040034.
A. Rahman, S. I. Shamim, D. B. Bose, and R. Pandita, “Security misconfigurations in open source Ku- bernetes manifests: An empirical study,” ACM Transactions on Software Engineering and Methodology, vol. 32, pp. 1–36, May 2023. https://doi.org/10.1145/3579639.
S. Dalla Palma, D. Di Nucci, F. Palomba, and D. A. Tamburri, “Within-project defect prediction of Infrastructure-as-Code using product and process metrics,” IEEE Transactions on Software Engineering, vol. 48, pp. 2086–2104, June 2022. https://doi.org/10.1109/TSE.2021.3051492.
A. Rahman, M. R. Rahman, C. Parnin, and L. Williams, “Security smells in Ansible and Chef scripts: A replication study,” ACM Transactions on Software Engineering and Methodology, vol. 30, pp. 1–31, Jan. 2021. https://doi.org/10.1145/3408897.
M. Begoug, M. Chouchen, and A. Ouni, “TerraMetrics: An open source tool for Infrastructure-as-Code (IaC) quality metrics in Terraform,” in Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension (ICPC 2024), pp. 450–454, IEEE Computer Society, June 2024. https://doi.org/10.1145/3643916.3644439.
N. Ardelia, L. Lindawati, and N. Anugraha, “Comparison of automation deployment implementation on Google Cloud virtual machine using deployment manager and Terraform,” Jurnal Teknologi Informasi dan Pendidikan, vol. 17, pp. 529–542, Jan. 2025. https://doi.org/10.24036/jtip.v17i2.869.
D. Sokolowski, D. Spielmann, and G. Salvaneschi, “Automated Infrastructure as Code program testing,” IEEE Transactions on Software Engineering, vol. 50, pp. 1585–1599, June 2024. https://doi.org/10.1109/TSE.2024.3393070.
S. S. Shinde, “Implementing infrastructure as code with Terraform for cloud-based services,” World Journal of Advanced Engineering Technology and Sciences, vol. 15, pp. 2434–2442, June 2025. https://doi.org/10.30574/wjaets.2025.15.3.1161.
D. Regvart, I. Vlahovi´c, and M. Balkovi´c, “A controlled comparative evaluation of Infrastructure as Code tools: Deployment performance and maintainability across Terraform, Pulumi, and AWS CloudFormation,” Applied Sciences, vol. 16, p. 2971, Mar. 2026. https://doi.org/10.3390/app16062971.
Haeruddin, “Ketersediaan tinggi infrastruktur Elearning berbasis komputasi awan,” Jurnal Teknik Infor- matika dan Sistem Informasi (JATISI), vol. 10, pp. 670–682, Mar. 2023. https://jurnal.mdp.ac.id/index.php/jatisi/article/view/5050.
S. E. Prasetyo, “Design and implementation of lightweight virtualization using Docker container in distri- buting web application with experimental methods,” JITE (Journal of Informatics and Telecommunication Engineering), vol. 4, pp. 270–276, Jan. 2021. https://doi.org/10.31289/jite.v4i2.4019.
Haeruddin, A. Yulianto, S. E. Prasetyo, G. Wijaya, and D. Givarel, “Ketersediaan tinggi website meng- gunakan penskalaan otomatis dan penyeimbang beban AWS,” Telcomatics, vol. 10, pp. 91–96, July 2025. https://doi.org/10.37253/telcomatics.v10i1.10951.
S. S. Shapiro and M. B. Wilk, “An analysis of variance test for normality (complete samples),” Biometrika, vol. 52, pp. 591–611, Dec. 1965. https://doi.org/10.1093/biomet/52.3-4.591.
B. L. Welch, “The generalization of ‘Student’s’ problem when several different population variances are involved,” Biometrika, vol. 34, no. 1–2, pp. 28–35, 1947. https://doi.org/10.1093/biomet/34.1-2.28.
H. B. Mann and D. R. Whitney, “On a test of whether one of two random variables is stochastically larger than the other,” The Annals of Mathematical Statistics, vol. 18, pp. 50–60, Mar. 1947. https://doi.org/10.1214/aoms/1177730491.
P. Virtanen, R. Gommers, T. E. Oliphant, et al., “SciPy 1.0: Fundamental algorithms for scienti- fic computing in Python,” Nature Methods, vol. 17, pp. 261–272, Mar. 2020. https://doi.org/10.1038/s41592-019-0686-2.
J. Cohen, Statistical Power Analysis for the Behavioral Sciences. Hillsdale, NJ, USA: Lawrence Erlbaum Associates, 2nd ed., 1988. https://doi.org/10.4324/9780203771587.
D. S. Kerby, “The simple difference formula: An approach to teaching nonparametric correlation,” Comp- rehensive Psychology, vol. 3, p. 11.IT.3.1, Jan. 2014. https://doi.org/10.2466/11.IT.3.1.
S. Holm, “A simple sequentially rejective multiple test procedure,” Scandinavian Journal of Statistics, vol. 6, no. 2, pp. 65–70, 1979.
J. L. Hodges and E. L. Lehmann, “Estimates of location based on rank tests,” The Annals of Mathematical Statistics, vol. 34, pp. 598–611, June 1963. https://doi.org/10.1214/aoms/1177704172.
G. Cumming and S. Finch, “A primer on the understanding, use, and calculation of confidence intervals that are based on central and noncentral distributions,” Educational and Psychological Measurement, vol. 61, pp. 532–574, Aug. 2001. https://doi.org/10.1177/0013164401614002.
C. J. Clopper and E. S. Pearson, “The use of confidence or fiducial limits illustrated in the case of the binomial,” Biometrika, vol. 26, no. 4, pp. 404–413, 1934. https://doi.org/10.1093/biomet/26.4.404.
O. Tomarchio, D. Calcaterra, and G. Di Modica, “Cloud resource orchestration in the multi-cloud landsca- pe: A systematic review of existing frameworks,” Journal of Cloud Computing, vol. 9, p. 49, Dec. 2020. https://doi.org/10.1186/s13677-020-00194-7.
Unduhan
Diterbitkan
Terbitan
Bagian
Lisensi
Hak Cipta (c) 2026 Stefanus Prasetyo, Hardy Setiawan, Haeruddin Haeruddin

Artikel ini berlisensiCreative Commons Attribution-ShareAlike 4.0 International License.






