Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: complete modular starter module #30

Merged
merged 12 commits into from
Dec 11, 2023

Conversation

jaredfholgate
Copy link
Member

@jaredfholgate jaredfholgate commented Nov 2, 2023

Overview/Summary

The PR adds an end to end example of using the new avm modules for ALZ.

This PR fixes/adds/changes/removes

  1. Feature Request: Add end to end example starter module for AVM ALZ modules #29

Breaking Changes

None

Testing Evidence

The starter module has been run and generated a hierarchy with no errors:
image

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Updated relevant and associated documentation.

@luke-taylor
Copy link
Contributor

Nice work here Jared.

I'd be tempted to remove the template file variables though, it layers in more complexity. I think being more opinionated would be better, the idea behind the complete was to somewhat replicate the scalability of caf-enterprise-scale.

Do you think we could just hard code certain variables directly in the modules in main.tf, like log_analytics_workspace_id etc. I don't think they necessarily need exposing in the config.yaml as 9 times out of 10 it will be the same, i.e. the output of the alz-management module.

@jaredfholgate
Copy link
Member Author

Nice work here Jared.

I'd be tempted to remove the template file variables though, it layers in more complexity. I think being more opinionated would be better, the idea behind the complete was to somewhat replicate the scalability of caf-enterprise-scale.

Do you think we could just hard code certain variables directly in the modules in main.tf, like log_analytics_workspace_id etc. I don't think they necessarily need exposing in the config.yaml as 9 times out of 10 it will be the same, i.e. the output of the alz-management module.

It is quite possible I am over-engineering it. I was just thinking ahead to VBD usage and keeping it DRY. But yes, the templating could be confusing if not well documented. I will have a think about how to simplify it. I think the log_analytics_workspace_id can be removed for sure. The subscription ids might be problematic, but sure there is a way to handle that.

@luke-taylor
Copy link
Contributor

Nice work here Jared.
I'd be tempted to remove the template file variables though, it layers in more complexity. I think being more opinionated would be better, the idea behind the complete was to somewhat replicate the scalability of caf-enterprise-scale.
Do you think we could just hard code certain variables directly in the modules in main.tf, like log_analytics_workspace_id etc. I don't think they necessarily need exposing in the config.yaml as 9 times out of 10 it will be the same, i.e. the output of the alz-management module.

It is quite possible I am over-engineering it. I was just thinking ahead to VBD usage and keeping it DRY. But yes, the templating could be confusing if not well documented. I will have a think about how to simplify it. I think the log_analytics_workspace_id can be removed for sure. The subscription ids might be problematic, but sure there is a way to handle that.

Yeah for sure, and the folks delivering the VBDs may not necessarily be fully clued up on advanced features of terraform. Why may the subscription Ids be problematic?

@jaredfholgate
Copy link
Member Author

Please note that this is blocked while we figure out some stuff with the vNext module.

@jaredfholgate jaredfholgate added enhancement New feature or request BLOCKED Blocked awaiting external input. labels Nov 7, 2023
@matt-FFFFFF
Copy link
Member

@jaredfholgate see this branch for some progress:

https://github.com/Azure/terraform-azurerm-avm-ptn-alz/tree/experiment/yamlinput/examples/dynamic-input

@jaredfholgate jaredfholgate force-pushed the feature-module-starter-template branch from c6324a2 to a9a075b Compare November 20, 2023 10:51
@jaredfholgate jaredfholgate force-pushed the feature-module-starter-template branch from 256ec3b to 4a2e62f Compare December 11, 2023 09:26
@jaredfholgate jaredfholgate removed the BLOCKED Blocked awaiting external input. label Dec 11, 2023
@jaredfholgate jaredfholgate marked this pull request as ready for review December 11, 2023 14:22
@jaredfholgate
Copy link
Member Author

@matt-FFFFFF and @luke-taylor I appreciate that I have not added documentation for this starter module, but we have another issue open to add docs for the complete starter module, so plan to piggy back off that as the docs will be very similar. #43

Copy link
Member

@matt-FFFFFF matt-FFFFFF left a comment

Choose a reason for hiding this comment

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

lgtm

@jaredfholgate jaredfholgate merged commit ece7715 into main Dec 11, 2023
9 checks passed
@jaredfholgate jaredfholgate deleted the feature-module-starter-template branch December 11, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants