iLert/terraform-provider-ilert
GitHub: iLert/terraform-provider-ilert
iLert 平台的官方 Terraform Provider,允许用户通过基础设施即代码的方式声明式管理告警与值班相关配置。
Stars: 11 | Forks: 2
# Terraform Provider
- 网站:https://registry.terraform.io/providers/iLert/ilert/latest/docs
## 要求
- [Terraform](https://www.terraform.io/downloads.html) 1.3.x
- [Go](https://golang.org/doc/install) 1.23(用于构建 provider 插件)
## 构建 Provider
将仓库克隆到:`$GOPATH/src/github.com/terraform-providers/terraform-provider-ilert`
```
$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-ilert.git
```
进入 provider 目录并构建 provider
```
$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-github
$ make build
# 或者如果你使用的是 mac:
$ gnumake build
```
## 使用 Provider
有关 ilert provider 的详细文档可以在[这里](https://registry.terraform.io/providers/iLert/ilert/latest/docs)找到。
## 开发 Provider
如果你想为该 provider 做开发,你首先需要在你的机器上安装 [Go](http://www.golang.org)(_需要_ 1.23+ 版本)。你还需要正确设置 [GOPATH](http://golang.org/doc/code.html#GOPATH),并将 `$GOPATH/bin` 添加到你的 `$PATH` 中。
要编译 provider,请运行 `make build`。这将会构建 provider,并将 provider 二进制文件放在 `$GOPATH/bin` 目录中。
```
$ make build
...
$ $GOPATH/bin/terraform-provider-ilert
...
```
为了运行完整的验收测试套件,请运行 `make testacc`。
_注意:_ 验收测试会创建真实的资源,运行通常需要花费金钱。
```
make testacc
```
## 获取帮助
我们很乐意回复 [GitHub issues][issues]。
#### 许可证 根据你的选择,受 Apache License, Version 2.0 或 MIT license 许可。
除非你明确声明,否则由你提交的旨在包含在 terraform-provider-ilert 中的任何贡献(如 Apache-2.0 许可证中所定义)均应按上述方式进行双重许可,无需任何附加条款或条件。
#### 许可证 根据你的选择,受 Apache License, Version 2.0 或 MIT license 许可。
除非你明确声明,否则由你提交的旨在包含在 terraform-provider-ilert 中的任何贡献(如 Apache-2.0 许可证中所定义)均应按上述方式进行双重许可,无需任何附加条款或条件。
标签:ECS, EVTX分析, Go, iLert, Ruby工具, Terraform, 告警管理, 日志审计