Skip to content

Instantly share code, notes, and snippets.

@FRosner
Last active August 10, 2018 09:32
Show Gist options
  • Save FRosner/852c3198e26c295ff024b0fce17acda4 to your computer and use it in GitHub Desktop.
Save FRosner/852c3198e26c295ff024b0fce17acda4 to your computer and use it in GitHub Desktop.
locals {
api-gateway-url = "${aws_api_gateway_deployment.example.invoke_url}/${aws_api_gateway_resource.example.path_part}"
}
resource "leanix_webhook_subscription" "example" {
identifier = "${local.project-name}-${substr(md5(substr(var.leanix_api_token, 0, 4)), 0, 8)}"
target_url = "${local.api-gateway-url}"
target_method = "POST"
active = true
workspace_id = "8751abbf-8093-410d-a090-10c7735952cf"
tag_set {
tags = ["pathfinder", "FACT_SHEET_CREATED"]
}
tag_set {
tags = ["pathfinder", "FACT_SHEET_DELETED"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment