Activations

 Average processing time 5–7 minutes

Activate a security configuration version. To deactivate that version, run terraform destroy.

Notes:

  • An activation fails if the security configuration includes one or more invalid hostnames and doesn't have at least one match target.
  • A change in the note or notification_emails argument doesn't trigger a configuration activation.
resource "akamai_appsec_activations" "my-activation" {
  config_id           = 12345
  network             = "STAGING"
  note                = "Activating on staging"
  notification_emails = ["jsmith@example.com"]
  version             = 1
}
resource "akamai_appsec_configuration" "my-config" {
  name        = "my appsec config"
  description = "This is my new configuration."
  contract_id = "C-0N7RAC7"
  group_id    = "12345"
  host_names  = ["example.com"]
}

data "akamai_appsec_configuration" "my-configuration" {
  name = akamai_appsec_configuration.my-config.name
}

output "my-appsec-config" {
  value = data.akamai_appsec_configuration.my-configuration
}

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

resource "akamai_appsec_activations" "my-activation" {
  config_id           = data.akamai_appsec_configuration.my-configuration.config_id
  network             = "STAGING"
  note                = "Activating on staging"
  notification_emails = ["jsmith@example.com"]
  version             = data.akamai_appsec_configuration.my-configuration.latest_version
}

Arguments

Send a configuration ID and its version and define notification emails to activate your configuration.

ArgumentRequiredDescription
config_idYour configuration's ID.
versionYour configuration's version.
notification_emailsEmail addresses to notify about the activation status.
networkThe Akamai network to activate your configuration version, either STAGING or PRODUCTION. Defaults to STAGING if not set.
noteA descriptive message about the activation request. Defaults to a timestamp if not set.

Attributes

If you've not set an output method, the response only provides a success message with the resource's id.

Setting an output method returns the configuration activation details you provided on create along with the computed status attribute.