Open ryan-royals opened 1 month ago
[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!
[!TIP] For additional guidance on how to triage this issue/PR, see the AVM Issue Triage documentation.
@ryan-royals, thanks for volunteering to be a module owner!
[!IMPORTANT] Please don't start the development just yet!
The AVM core team will review this module proposal and respond to you first. Thank you!
[!IMPORTANT] @ryan-royals, 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.
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?
I'm not sure, please advise
Module Name
avm-?(res/pat/utl)-?(diag)-diag-settings
Module Details
Overview
Module that you feed it a list of Resource ID's, and it automatically enables all
enabled_log
andmetric
to the supplied destination. Overwrites are available to configure each Resource Type.Example implementation
Here is my first pass at the module
In this example, all
enabled_log
andmetric
are enabled for Storage Accounts, but anyblobServices
(In this example there is only 1, but this applies to all) only hasStorageDelete
forenabled_log
and allmetric
s.Potential Flaws
count
for the diagnostic settings.length()
for thecount
at plan time.count
for the loop ondiagnostic_setting
means that if you remove a element from the list, all following elements get recreated.diagnostic_setting
resource blocks in the root module.AVM misc
Do you want to be the owner of this module?
Yes
Module Owner's GitHub Username (handle)
ryan-royals
(Optional) Secondary Module Owner's GitHub Username (handle)
No response