Skip to main content

Module: incident-management

Terraform module to provision Opsgenie resources using the Opsgenie provider. The provider needs to be configured with the proper credentials before it can be used. It consist of root module which is only here as an example but can be used as a combination of all submodules. Submodules can also be combined to abstract away complexity of setting up for example a team escalation.

Introduction

Available modules:

Note: Root module is just an example that uses all of submodules.

Note: See the Advanced Features Example for features only available to some OpsGenie plans.

Usage

Here's how to invoke team module in your projects

module "team-name" {
source = "cloudposse/incident-management/opsgenie//modules/team"
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"

team = {
name = "team-name"
description = "team-description"
}
}

Examples

Here are examples of using the module:

  • complete - complete example of using this module

Submodules examples:

Here is an example of using the config module, which incorporates all resource declarations into a single module:

Here are automated tests for the examples using bats and Terratest (which tests and provisions the examples):