This survey provides a comprehensive overview of the use of Large Language Models (LLMs) for generating Infrastructure as Code (IaC).
The content starts by introducing Infrastructure as Code (IaC), which is a revolutionary approach for managing and provisioning IT infrastructure using machine-readable code. IaC offers numerous benefits such as automation, consistency, rapid deployment, and version control. However, IaC orchestration can be a painstaking effort that requires specialized skills and manual effort.
The survey then delves into the capabilities of LLMs, which have demonstrated remarkable performance in various natural language processing tasks, including code generation and validation. The authors explore the potential of applying LLMs to address the challenges in IaC development, highlighting the promising possibility of automatically generating IaC configurations using LLMs.
The survey covers related works on using LLMs for Ansible-YAML generation, IaC generation in the context of DevSecOps, and the use of ChatGPT for IaC generation. It also discusses tools like Infracopilot and K8sGPT that leverage LLMs for IaC-related tasks.
The authors then present their own experiments on generating Terraform configurations using LLMs, specifically the GPT-3.5-Turbo and CodeParrot models. The results show that GPT-3.5-Turbo outperforms the CodeParrot model in terms of functional correctness, highlighting the importance of the model's training dataset and fine-tuning capabilities.
Finally, the survey delves into the safety and ethical considerations of using LLM-generated IaC configurations, including security risks, over-reliance, resource overutilization, and maintenance challenges. The authors propose best practices and recommendations to address these concerns, such as continuous review, testing in isolated environments, and maintaining human oversight.
The survey concludes by outlining the challenges and future research directions in this domain, emphasizing the need for comprehensive training data, awareness of current practices and security, and seamless integration with DevOps tools.
Іншою мовою
із вихідного контенту
arxiv.org
Ключові висновки, отримані з
by Kalahasti Ga... о arxiv.org 04-02-2024
https://arxiv.org/pdf/2404.00227.pdfГлибші Запити