Skip to content

Conversation

gambol99
Copy link
Member

No description provided.

Copy link

Pull Request Review Status

  • 🖌 Terraform Format and Style: success
  • 🔍 Terraform Linting: success
  • 👮 Terraform Security Check: success
  • 👮 Terraform Security Checkov: success
  • 🔘 Terraform Tests: success
  • 🔧 Terraform Initialisation: success
  • 🤖 Terraform Validation: success
  • 🤖 Terraform Example Validation: success
  • 📖 Terraform Documentation: success
  • 🔖 Commitlint: success

Working Directory: modules/team-budgets
Pusher: @gambol99, Action: pull_request
Workflow Run Link: https://github.com/appvia/terraform-aws-budgets/actions/runs/14754420416

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the budget notifications configuration by removing the separate notifications input and consolidating notification details within the budgets configuration, while making SNS topic creation optional.

  • Removed the standalone notifications configuration block.
  • Updated the budgets input to include a singular "notification" field with a default of null.
  • Retained SNS topic related inputs for optional SNS topic creation.
Files not reviewed (3)
  • modules/budgets/locals.tf: Language not supported
  • modules/budgets/main.tf: Language not supported
  • modules/budgets/variables.tf: Language not supported
Comments suppressed due to low confidence (1)

modules/budgets/README.md:119

  • The separate notifications input is removed. Please ensure the documentation clearly explains that notification configuration is now handled via the single 'notification' field within the budgets input and update any migration notes accordingly.
| <a name="input_notifications"></a> [notifications](#input_notifications) | The configuration as to how the budget notifications should be sent | ... | n/a | yes |

| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | n/a | yes |
| <a name="input_budgets"></a> [budgets](#input\_budgets) | A collection of budgets to provision | <pre>list(object({<br/> name = string<br/> budget_type = optional(string, "COST")<br/> limit_amount = optional(string, "100.0")<br/> limit_unit = optional(string, "PERCENTAGE")<br/> time_unit = optional(string, "MONTHLY")<br/><br/> notification = optional(object({<br/> comparison_operator = string<br/> threshold = number<br/> threshold_type = string<br/> notification_type = string<br/> }), null)<br/><br/> auto_adjust_data = optional(list(object({<br/> auto_adjust_type = string<br/> })), [])<br/><br/> cost_filter = optional(map(object({<br/> values = list(string)<br/> })), {})<br/><br/> cost_types = optional(object({<br/> include_credit = optional(bool, false)<br/> include_discount = optional(bool, false)<br/> include_other_subscription = optional(bool, false)<br/> include_recurring = optional(bool, false)<br/> include_refund = optional(bool, false)<br/> include_subscription = optional(bool, false)<br/> include_support = optional(bool, false)<br/> include_tax = optional(bool, false)<br/> include_upfront = optional(bool, false)<br/> use_blended = optional(bool, false)<br/> }), {<br/> include_credit = false<br/> include_discount = false<br/> include_other_subscription = false<br/> include_recurring = false<br/> include_refund = false<br/> include_subscription = true<br/> include_support = false<br/> include_tax = false<br/> include_upfront = false<br/> use_blended = false<br/> })<br/><br/> tags = optional(map(string), {})<br/> }))</pre> | `[]` | no |
Copy link
Preview

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

Changing the field from plural 'notifications' with a default of an empty map to a singular 'notification' with a default of null may be a breaking change for consumers. Please ensure that the API changes are clearly documented with appropriate migration instructions if needed.

Copilot uses AI. Check for mistakes.

Copy link

Pull Request Review Status

  • 🖌 Terraform Format and Style: success
  • 🔍 Terraform Linting: success
  • 👮 Terraform Security Check: success
  • 👮 Terraform Security Checkov: success
  • 🔘 Terraform Tests: success
  • 🔧 Terraform Initialisation: success
  • 🤖 Terraform Validation: success
  • 🤖 Terraform Example Validation: success
  • 📖 Terraform Documentation: success
  • 🔖 Commitlint: success

Working Directory: modules/budgets
Pusher: @gambol99, Action: pull_request
Workflow Run Link: https://github.com/appvia/terraform-aws-budgets/actions/runs/14754420416

@gambol99 gambol99 merged commit 7f6633c into main Apr 30, 2025
24 checks passed
@gambol99 gambol99 deleted the feat/notifications branch April 30, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants