Senior
For EC2 — will you take a ready-made module or write your own?
sobes.tech AI
Answer from AI
The choice between using a ready-made module for EC2 or writing your own depends on several factors:
- Project requirements: If standard modules (for example, from Terraform Registry or Ansible Galaxy) fully cover the needs, their use will speed up development and simplify maintenance.
- Unique configurations: If the infrastructure requires specific configurations not available in ready-made modules, it makes sense to write your own module for better customization.
- Support and updates: Ready-made modules are usually supported by the community but may not always adapt quickly to new requirements.
- Security and control: A custom module allows better control over the code and security.
In most cases for EC2, I would first consider ready-made modules to avoid reinventing the wheel, but if necessary — I would write my own to ensure the required level of control and flexibility.