GuideReference
TrainingSupportCommunity
Guide

Match target

akamai_appsec_match_target

Creates a match target associated with a security configuration. Match targets determine which security policy should apply to an API, hostname or path.

Scopes: Security configuration

Example

terraform {
  required_providers {
    akamai = {
      source = "akamai/akamai"
    }
  }
}

provider "akamai" {
  edgerc = "~/.edgerc"
}

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}

resource "akamai_appsec_match_target" "match_target" {
  config_id    = data.akamai_appsec_configuration.configuration.config_id
  match_target = file("${path.module}/match_targets.json")
}

Argument reference

This resource supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the match target being modified.
  • match_target (Required). Path to a JSON file containing one or more match target definitions.

Output options

In addition to the arguments above, the following attribute is exported:

  • match_target_id. ID of the match target.