Description
ROS sends stack creation and update events by HTTP POST to the callbacks in notification_urls.
Potential impact
Without another monitoring route, the responsible team can miss deployment failures or unexpected status changes.
Remediation
Specify a receiver you operate and verify it receives a stack event. Terraform replaces the stack when this setting changes, so review the plan and replacement impact before applying it to an existing stack.
Examples
The second example supplies var.notification_url in place of an empty list. Set it to a URL that accepts HTTP POST and add the resource definitions omitted from the version-only template.
Before
hcl
resource "alicloud_ros_stack" "example" {
stack_name = "tf-testaccstack"
notification_urls = []
template_body = <<EOF
{
"ROSTemplateFormatVersion": "2015-09-01"
}
EOF
}
After
hcl
resource "alicloud_ros_stack" "example" {
stack_name = "tf-testaccstack"
notification_urls = [var.notification_url]
template_body = <<EOF
{
"ROSTemplateFormatVersion": "2015-09-01"
}
EOF
}