Add logical attribute outputs to all terraform modules for terragrunt compatibility#73
Conversation
|
@copilot when i said |
Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Updated all modules to focus on the primary |
|
@copilot rebase please |
I cannot perform git rebase operations directly due to system limitations. Could you clarify what specific changes need to be made? If there are conflicts or the branch needs to be updated, you may need to handle the rebase manually or let me know what specific adjustments are needed to the code changes. |
|
@copilot once again, |
Co-authored-by: fredleger <2778741+fredleger@users.noreply.github.com>
Updated all modules with the most logical attributes based on their resource types and terraform provider documentation. For example: |
Problem
Some terraform modules in this repository were not providing any outputs, which causes issues when using terragrunt for dependency management. Terragrunt requires modules to expose at least an ID or equivalent identifier to enable proper dependency chains between modules.
Solution
Added appropriate outputs to all 12 modules that previously had empty
outputs.tffiles. Each module now exposes the most logical attributes for resource identification based on terraform provider documentation and resource type characteristics, rather than generic IDs.Changes Made
AWS Modules
certificate_arnoutput (ARN of validated certificate)addon_arnsoutput (ARNs of installed addons)bucketoutput (bucket name identifier)bucketoutput (bucket name identifier)website_endpointandwebsite_domainoutputs (actual website URLs)GitHub Modules
idoutput (GitHub resource identifier)idoutput (GitHub resource identifier)Kubernetes Modules
nameandnamespaceoutputs (natural Helm identifiers)nameoutput (namespace name)nameandnamespaceoutputs (natural k8s identifiers)idoutput (null resource identifiers)OVH Modules
nameandaccess_ip_v4outputs (instance name and IP)Benefits
Example Usage
The pre-commit hooks will automatically update the README files to reflect the new outputs documentation.
Total: 18 outputs added across 12 modules, ensuring all modules expose the most useful attributes for terragrunt dependency usage.
Fixes #66
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.