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

[ResponseOps][Rules] Extend the TerraForm provider to support the new capabilities of the Create Rule API #186963

Closed
7 tasks done
cnasikas opened this issue Jun 26, 2024 · 4 comments
Assignees
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@cnasikas
Copy link
Member

cnasikas commented Jun 26, 2024

The Elastic TerraForm provider allows users to create rules using TerraForm. It uses the Create Rule API to create rules. The API evolved over time to support new features but the TF provider fell behind. We should update the TF provider to support the new capabilities.

The current model of the rule: https://github.com/elastic/terraform-provider-elasticstack/blob/eb077fd2993321ec813222c317aed0a831c6f073/internal/models/alert_rule.go

The current request schema of the Create rule API: https://github.com/elastic/kibana/blob/ac9f6233eb6675c6d5db7cef80817a4698543653/x-pack/plugins/alerting/docs/openapi/components/schemas/create_rule_request.yaml

Related: elastic/terraform-provider-elasticstack#591, #186963, https://github.com/elastic/enhancements/issues/22130, https://github.com/elastic/enhancements/issues/22131, https://github.com/elastic/enhancements/issues/22129

DoD

@cnasikas cnasikas added Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Jun 26, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@shanisagiv1
Copy link

shanisagiv1 commented Jul 4, 2024

see also relates issues to Terraform, lets make sure we fix all issues with this effort. @cnasikas thanks!!
#178969
elastic/terraform-provider-elasticstack#524

@adcoelho adcoelho self-assigned this Jul 19, 2024
@tobio
Copy link
Member

tobio commented Aug 7, 2024

Related to elastic/terraform-provider-elasticstack#591
IIUC the updates required for this work will immediately fix elastic/terraform-provider-elasticstack#524. LMK if you need any help in testing that one, though the issue does have some decent repro detail.

@cnasikas
Copy link
Member Author

TF provider release with all the changes described in the issue: https://github.com/elastic/terraform-provider-elasticstack/releases/tag/v0.11.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

No branches or pull requests

5 participants