Your team of Infrastructure DevOps Engineers is growing, and you are starting to use Terraform to manage infrastructure.
You need a way to implement code versioning and to share code with other team members.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.A.
https://www.terraform.io/docs/cloud/guides/recommended-practices/part3.3.htmlThe best practice for managing Terraform code and sharing it with team members is to store it in a version-control system (VCS), such as Git or SVN. Option A is the correct answer.
Storing the Terraform code in a VCS provides several benefits, including:
Establishing procedures for pushing new versions and merging with the master branch is important to ensure that changes are tracked and reviewed properly. These procedures should include code reviews, automated testing, and documentation updates.
In contrast, options B, C, and D are not recommended for storing and sharing Terraform code.
Option B (storing the Terraform code in a network shared folder) is not recommended because it does not provide version control or collaboration features, and it can lead to file overwrites and conflicts.
Option C (storing the Terraform code in a Cloud Storage bucket) is not recommended because it does not provide the necessary version control features, and it can be difficult to manage access and permissions for each team member.
Option D (storing the Terraform code in a shared Google Drive folder) is not recommended because it does not provide version control or collaboration features, and it can lead to file overwrites and conflicts. Additionally, Google Drive is not designed for software development and does not provide the necessary features for managing code changes.