Skip to main content

api_integration

API Integration

Terraform module to configure Opsgenie API Integration

Usage

Create Opsgenie API Integration example

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

api_integration = {
name = module.label.id
type = "AmazonSns"
owner_team_id = module.team.team_id
}
}

Inputs

Note: api_integration is a map for two reasons:

  • to be able to put whole configuration in yaml file
  • variables defined with type set are not robust enough (can't set default values)
NameDefaultDescriptionRequired
api_integration{}This variable is used to configure Opsgenie API Integration.Yes

Outputs

NameDescription
api_integration_api_keyAPI key of the created integration
api_integration_nameThe name of the Opsgenie API Integration.
api_integration_idThe ID of the Opsgenie API Integration.