Skip to content

Todo deploy#46

Open
kenu21 wants to merge 8 commits into
mate-academy:mainfrom
kenu21:todo-deploy
Open

Todo deploy#46
kenu21 wants to merge 8 commits into
mate-academy:mainfrom
kenu21:todo-deploy

Conversation

@kenu21

@kenu21 kenu21 commented Nov 15, 2025

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_group resource definition in the root main.tf.
  • The azurerm_network_interface resource must be moved from the network module to the compute module as specified in the requirements.
  • In modules/network/main.tf, the public IP's allocation_method needs to be changed from Static to Dynamic.
  • Please update the location in terraform.tfvars to uksouth and the backend storage account name in backend.tf to yourstorageaccount.
  • The root variables.tf file is missing the required default values 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread install-app.sh
Comment thread .gitignore
Comment thread backend.tf
Comment thread main.tf
Comment thread main.tf Outdated
Comment thread modules/network/main.tf
Comment thread modules/network/outputs.tf Outdated
Comment thread modules/network/variables.tf
Comment thread variables.tf
Comment thread terraform.tfvars

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 a data source. Please change this to a resource block 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.tf must have its allocation_method set to Dynamic.
  • The location in variables.tf and terraform.tfvars needs to be updated from centralindia to uksouth.
  • The storage_account_name in backend.tf should be yourstorageaccount.
  • Please add *.tfvars to your .gitignore file 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread backend.tf
Comment thread .gitignore
Comment thread main.tf
Comment thread modules/network/main.tf
Comment thread variables.tf
Comment thread terraform.tfvars

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: The storage_account_name must be yourstorageaccount.
  • modules/network/main.tf: The public IP allocation_method should be Dynamic.
  • variables.tf & terraform.tfvars: The location needs to be uksouth.

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

  1. Rate AI review example

Comment thread backend.tf
Comment thread modules/network/main.tf
Comment thread main.tf
Comment thread terraform.tfvars
Comment thread variables.tf

@linubah linubah left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if everything deployed without problems - add to the code azurerm_resource_group resource so that workflow succeed

@kenu21

kenu21 commented Nov 18, 2025

Copy link
Copy Markdown
Author

@linubah
I've fixed test according to discussion in the chat

@kenu21
kenu21 requested a review from linubah November 18, 2025 08:03

@linubah linubah left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants