terraform/website/source/docs/providers/librato/r/service.html.markdown

1.1 KiB

layout page_title sidebar_current description
librato Librato: librato_service docs-librato-resource-service Provides a Librato service resource. This can be used to create and manage notification services on Librato.

librato_service

Provides a Librato Service resource. This can be used to create and manage notification services on Librato.

Example Usage

# Create a new Librato service
resource "librato_service" "email" {
    title = "Email the admins"
    type = "mail"
    settings = <<EOF
{
  "addresses": "admin@example.com"
}
EOF
}

Argument Reference

The following arguments are supported. Please check the relevant documentation for each type of alert.

  • type - (Required) The type of notificaion.
  • title - (Required) The alert title.
  • settings - (Required) a JSON hash of settings specific to the alert type.

Attributes Reference

The following attributes are exported:

  • id - The ID of the alert.
  • type - The type of notificaion.
  • title - The alert title.
  • settings - a JSON hash of settings specific to the alert type.