Todo deploy#46
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job setting up the modular structure for this Terraform project! The overall approach is solid, but several changes are needed to meet all the task requirements.
Here are the key issues that need to be addressed:
- The configuration is missing the
azurerm_resource_groupresource definition in the rootmain.tf. - The
azurerm_network_interfaceresource must be moved from the network module to the compute module as specified in the requirements. - In
modules/network/main.tf, the public IP'sallocation_methodneeds to be changed fromStatictoDynamic. - Please update the
locationinterraform.tfvarstouksouthand the backend storage account name inbackend.tftoyourstorageaccount. - The root
variables.tffile is missing the requireddefaultvalues for the variables.
Once these are fixed, your solution will be in great shape!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job addressing the previous feedback, especially with the modular structure and adding default values. However, a few critical requirements still need to be addressed before this can be approved.
Here are the changes needed:
- In
main.tf, the resource group is defined as adatasource. Please change this to aresourceblock to ensure Terraform manages its lifecycle as required. This is the primary reason the CI check is failing. - The public IP in
modules/network/main.tfmust have itsallocation_methodset toDynamic. - The
locationinvariables.tfandterraform.tfvarsneeds to be updated fromcentralindiatouksouth. - The
storage_account_nameinbackend.tfshould beyourstorageaccount. - Please add
*.tfvarsto your.gitignorefile to prevent committing sensitive data.
Once these changes are made, your submission should be good to go!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving this submission as an educational override to help you progress, but there are a few critical items that still need to be addressed. You've done an excellent job structuring the project into modules and correctly configuring the .gitignore and install-app.sh files.
The main issue causing the CI check to fail is in main.tf, where the resource group is defined as a data source instead of a resource. Terraform needs to create this resource, so please change data to resource.
Additionally, please correct the following to meet the requirements:
backend.tf: Thestorage_account_namemust beyourstorageaccount.modules/network/main.tf: The public IPallocation_methodshould beDynamic.variables.tf&terraform.tfvars: Thelocationneeds to beuksouth.
Addressing these points will get your configuration fully aligned with the task. Keep up the great effort!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
linubah
left a comment
There was a problem hiding this comment.
if everything deployed without problems - add to the code azurerm_resource_group resource so that workflow succeed
|
@linubah |
https://github.com/kenu21/devops_todolist_terraform_task/actions/runs/19391446465