Azure / Azure-Verified-Modules

Azure Verified Modules (AVM) is an initiative to consolidate and set the standards for what a good Infrastructure-as-Code module looks like. Modules will then align to these standards, across languages (Bicep, Terraform etc.) and will then be classified as AVMs and available from their respective language specific registries.
https://aka.ms/AVM
MIT License
317 stars 65 forks source link

[Module Proposal]: `avm-res-documentdb-databaseaccount` (tf) #336

Closed PmeshramPM closed 2 weeks ago

PmeshramPM commented 9 months ago

Check for previous/existing GitHub issues/module proposals

Check this module doesn't already exist in the module indexes

Bicep or Terraform?

Terraform

Module Classification?

Resource Module

Module Name

avm-res-documentdb-databaseaccount

Module Details

Requested by the AZD team: https://github.com/Azure/Azure-Verified-Modules/issues/261 Needs module owner. CC: @jongio

Do you want to be the owner of this module?

No

Module Owner's GitHub Username (handle)

No response

(Optional) Secondary Module Owner's GitHub Username (handle)

No response

bryansan-msft commented 7 months ago

Hello @mbilalamjad and @matebarabas, I would like to be the owner of this module and help with its development.

mbilalamjad commented 7 months ago

Hi @bryansan-msft,

Thanks for requesting/proposing to be an AVM module owner!

We just want to confirm you agree to the below pages that define what module ownership means:

Any questions or clarifications needed, let us know!

If you agree, please just reply to this issue with the exact sentence below (as this helps with our automation 👍):

"I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER"

Thanks,

The AVM Core Team

RR

bryansan-msft commented 7 months ago

I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER

mbilalamjad commented 7 months ago

Hi @bryansan-msft ,

Thanks for confirming that you wish to own this AVM module and understand the related requirements and responsibilities!

Before starting development, please ensure ALL the following requirements are met.

Please use the following values explicitly as provided in the module index page:

Check if this module exists in the other IaC language. If so, collaborate with the other owner for consistency. 👍

You can now start the development of this module! ✅ Happy coding! 🎉

Please respond to this comment and request a review from the AVM core team once your module is ready to be published! Please include a link pointing to your PR, once available. 🙏

Any further questions or clarifications needed, let us know!

Thanks,

The AVM Core Team

panwar28 commented 6 months ago

I would like to be a co-owner and contribute to this module.

mbilalamjad commented 6 months ago

@bryansan-msft would you like to have @panwar28 as co-owner, he mentioned to me that he's got a module written already and he could contribute his code to this module

bryansan-msft commented 6 months ago

Hello @mbilalamjad, yes, no problem. He can be a co-owner.

mbilalamjad commented 6 months ago

Requested @bryansan-msft to share an update here

bryansan-msft commented 6 months ago

Hello @mbilalamjad, It is "in development" I have been working on this but as it is my first modules, I have been slow to get started with the structure of everything. I am working with my assigned contribution mentor on this to speed up.

v-xuto commented 5 months ago

@bryansan-msft - Do you have an ETA for this?

bryansan-msft commented 5 months ago

@bryansan-msft - Do you have an ETA for this?

It should be by the end of next month. I'm currently wrapping up the service bus one. @panwar28 is starting the development of cosmos module this week

bryansan-msft commented 2 months ago

Module is published https://registry.terraform.io/modules/Azure/avm-res-documentdb-databaseaccount/azurerm/latest

mbilalamjad commented 2 months ago

Hi @bryansan-msft the module needs to go through the review process before being published to the terraform registry. Pre-req of the review process is that all checks must pass which I can see on a PR are currently failing, can you ensure that all check are passing and follow the review process to have the module reviewed.

bryansan-msft commented 2 months ago

But @mbilalamjad that PR is yours, my PR to publish a new module is this one https://github.com/Azure/terraform-azurerm-avm-res-documentdb-databaseaccount/pull/16

It was approved by @matt-FFFFFF and with all checks in green

mbilalamjad commented 2 months ago

But @mbilalamjad that PR is yours, my PR to publish a new module is this one Azure/terraform-azurerm-avm-res-documentdb-databaseaccount#16

It was approved by @matt-FFFFFF and with all checks in green

Hi @bryansan-msft my PR is actually an automated governance PR which needs to be merged with all checks passing before a module can be published per the review process. Approval of your PR by @matt-FFFFFF is part of the review process but not the whole process. Appreciate if you could push updates on the branch of my PR to fix the failing checks and also incorporate any other changes to address the "Requested Actions" in the AVM-Review of your module.

bryansan-msft commented 2 months ago

@mbilalamjad in your PR, version-check is still failing even though version v0.1.0 tag was created. linting / avm-fix is also failing because it cant find the image. As both of these tasks are owned by the AVM team I cant guess what they do or fix them. There is no documentation in AVM page for them as well.

On the other hand. In the AVM page the version format suggested in the owner flow is "0.1.0" not "v0.1.0" so I dont know why this version-check is expecting something prefixed with "v" or what it is even expecting in the first place. I published the service bus like many months ago with 0.1.0 and there was no problem at all https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/owner-contribution-flow/#7-publish-the-module

Lastly, when the PR was approved and merged. All these checks that are failing now passed. So it was a change in the AVM tools after the PR which broke everything

mbilalamjad commented 2 months ago

Hey @bryansan-msft, the name of the release was 'initial module release', I updated it to '0.1.0' after which the version-check is passing now, I can see the same on your other module for service bus. To fix the linting / avm-fix you need to run avm pre-commit locally and then commit the changes as mentioned in the error of the check. I have done that for you and committed the changes, that check is also passing now. Hope that helps, please continue with the the "Requested Actions" in the AVM-Review of your module. P.S. please also check the same on your service bus module where there's an open governance PR

bryansan-msft commented 2 months ago

@mbilalamjad I will have a look at the service bus one. Can you merge the PR of documentdb so we can close this ticket? I cant approve or merge that PR

mbilalamjad commented 2 months ago

@mbilalamjad I will have a look at the service bus one. Can you merge the PR of documentdb so we can close this ticket? I cant approve or merge that PR

Hey @bryansan-msft, would recommend to perform the "Requested Actions" on the AVM-Review and push any updates necessary to the branch of this PR before we merge it

microsoft-github-policy-service[bot] commented 1 month ago

[!IMPORTANT] @bryansan-msft, this issue has not had any activity in the last 3 weeks. Please feel free to reach out to the AVM core team should you have any questions or need any help with the development of this module.

[!TIP] To silence this notification, provide an update every 3 weeks on the Module Proposal issue, or add the "Status: Long Term :hourglass_flowing_sand:" label.

microsoft-github-policy-service[bot] commented 3 weeks ago

[!IMPORTANT] @bryansan-msft, this issue has not had any activity in the last 3 weeks. Please feel free to reach out to the AVM core team should you have any questions or need any help with the development of this module.

[!TIP] To silence this notification, provide an update every 3 weeks on the Module Proposal issue, or add the "Status: Long Term :hourglass_flowing_sand:" label.

mbilalamjad commented 2 weeks ago

The module has been published to the registry, but the initial review of this module is pending. AVM team is closing this module proposal and marking the module available in the module index while continuing the review on the repo. Terraform Registry Link: https://registry.terraform.io/modules/Azure/avm-res-documentdb-databaseaccount/azurerm/latest GitHub Repo Link: https://github.com/Azure/terraform-azurerm-avm-res-documentdb-databaseaccount