-
Notifications
You must be signed in to change notification settings - Fork 553
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
New Data Source: alicloud_arms_alert_robots and New Resource: alicloud_arms_alert_robot #7898
Conversation
456823f
to
1aa2d93
Compare
website/alicloud.erb
Outdated
@@ -433,6 +433,9 @@ | |||
<li> | |||
<a href="/docs/providers/alicloud/d/arms_alert_contacts.html">alicloud_arms_alert_contacts</a> | |||
</li> | |||
<li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在的资源,数据源接入已经不需要再alicloud.erb文件中声明
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我这边已经将 alicloud.erb 文件中的修改移除了.
01deffc
to
85e2197
Compare
|
||
For information about Application Real-Time Monitoring Service (ARMS) Alert Robot and how to use it, see [What is Alert Robot](https://next.api.alibabacloud.com/document/ARMS/2019-08-08/CreateOrUpdateIMRobot). | ||
|
||
-> **NOTE:** Available since v1.135.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下一版本号为 1.236.0
|
||
This data source provides the Arms Alert Robots of the current Alibaba Cloud user. | ||
|
||
-> **NOTE:** Available since v1.135.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下一版本号为 1.236.0
Basic Usage | ||
|
||
```terraform | ||
data "alicloud_arms_alert_robots" "nameRegex" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要在前置创建出一个 robot,之后使用 Datasource 查询该实例
CI 校验中的错误需要处理下哈 |
b83f966
to
d1ece2c
Compare
我这边已经修复了一些, 你这边再帮忙走一下CI, 我这边再看看还有啥错误, 谢谢. |
d1ece2c
to
04a307e
Compare
再帮忙走一下CI, 看看是不是已经修复了. |
04a307e
to
2c8396d
Compare
需要rebase下主干 |
2c8396d
to
1c76f44
Compare
已经rebase到主干了. |
ba5a34a
to
37f98d9
Compare
|
||
The following arguments are supported: | ||
|
||
- `alert_robot_name` - (Required) The name of the resource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要使用 * 号
37f98d9
to
f6ba178
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
robot_addr = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23" | ||
} | ||
data "alicloud_arms_alert_robots" "nameRegex" { | ||
name_regex = "^my-AlertRobot" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要使用引用的方式,否则datasource的执行会在resource之前,导致无法查到数据
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经修复了.
f6ba178
to
478c16a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
当前PR所有校验均已通过,但由于当前版本已经在走发布流程,该资源会在下周的版本合入并发布。再次感谢您对阿里云的支持! |
add new resource arms_alert_robot
add new data source arms_alert_robots