- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3
 
App config Gaps fixed - Config aggregator module added #204
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can you please add a README.md file in the new submodule folder. As a reference, see: https://github.com/terraform-ibm-modules/terraform-ibm-cloud-monitoring/blob/main/modules/metrics_routing/README.md
 - I think you should rename the submodule: modules/scc_wp_config_aggregator -> modules/config_aggregator (drop the 
scc_wp_prefix) - I'm not sure I understand the point of the 
appconfigexample you added. It seems to be the same as the complete example. Don't you wan't to add a new example that tests your new config aggregator submodule? Usually I would say just append to the complete example, but I think that will be a problem with our current tests that runs the example as its not run in an enterprise account. So I suggest you create a new example called config-aggregator that provisions an App Config instance, the required trusted profile resource and the config-aggregator. 
| 
           @ctolon22 @RiadhJouini Should the submodule be more generic? For example you are hard coding things like   | 
    
          
 We could do it more general but maybe in a second phase.  | 
    
| 
           Done these two: Can you please add a README.md file in the new submodule folder. As a reference, see: https://github.com/terraform-ibm-modules/terraform-ibm-cloud-monitoring/blob/main/modules/metrics_routing/README.md  | 
    
| 
           Let's keep in mind the dependencies between modules here. We need the app config generated before the trusted profiles as it will be referenced as a trusted relationship. Then we generate the templates and policies before the config aggregator, as the latter needs a the template ID for scoping/assigning templates the child accounts. So the overall order of the full chain deploy is the following: resource group - wp - app config - trusted profiles - trusted profiles template - config aggregator.  | 
    
| 
           In answer to this comment: "I'm not sure I understand the point of the appconfig example you added. It seems to be the same as the complete example. Don't you wan't to add a new example that tests your new config aggregator submodule? Usually I would say just append to the complete example, but I think that will be a problem with our current tests that runs the example as its not run in an enterprise account. So I suggest you create a new example called config-aggregator that provisions an App Config instance, the required trusted profile resource and the config-aggregator." --> You're right, the appconfig folder served as a testing folder that was first called to avoid making any changes in the complete folder. As it's the same (and not called anymore), i deleted it. Config aggregator cannot be tested outside an enterprise account (at the moment)... cc @ctolon22  | 
    
| 
           As discussed today, there is no point in having a module which is a straight wrapper around a provider resource. We will just use provider directly in the workload protection end to end example.  | 
    
Description
Fixed Gaps and added the service aggregator sub-module.
Release required?
x.x.X)x.X.x)X.x.x)Release notes content
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers