An in-depth exploration of using Large Language Models (LLMs) to generate Terraform code for infrastructure as code (IaC), analyzing the capabilities and limitations of LLMs in this domain.
All models struggled with:
- Variable usage (hardcoded values)
- IAM configuration (permissions)
- Security group management
- Target group configuration
While LLMs are promising for IaC, they can be helpful tools for developers.