Open dms1981 opened 10 months ago
Not clear what the benefit of this is
@SimonPPledger Isn't the bigger explanation given above about the cleaner code and reduction in the verbosity self explanatory?
Thanks for your PR proposal @mayur-dev1. However, this ticket still needs refining.
User Story
As a Modernisation Platform Engineer I want to refactor how the
app-ecr-repo
is supplied with values So that my code is less verboseValue / Purpose
At present we add ECR repositories in core-shared-services through repeating module calls.
You can see our documentation here.
We could refactor this code to use a single module call that we supply with a map of values through a
for_each
expression. If done correctly, this could be done non-destructively and reduce the quantity of code in the file.EG:
This work would need to be handled cautiously, as there's a high risk of destroying customer ECR repositories, and probably won't result in significant savings in code quantity, but would make for cleaner code and be a good learning experience.
Useful Contacts
No response
Additional Information
No response
Proposal / Unknowns
No response
Definition of Done
for_each
for_each
module expression