Configuration

akamai_appsec_configuration

Create, clone, update, or delete a security configuration. Use the create_from_config_id argument to clone an existing configuration.

To delete a security configuration:

  1. Deactivate the configuration.
  2. Run terraform destroy.

resource "akamai_appsec_configuration" "my_security_configuration" {
 name        = "My security configuration"
 description = "This is my new configuration."
 contract_id = "C-0N7RAC7"
 group_id    = "12345"
 host_names  = ["my_security_configuration.com"]
}

Arguments

This resource supports the following arguments:

ArgumentRequiredDescription
name✔️Name of the new configuration.
description✔️Brief description of the new configuration.
contract_id✔️Your contract ID.
group_id✔️Your group ID.
host_names✔️JSON array of hostnames you want the configuration to protect. You must specify at least one hostname in order to create a new configuration.
create_from_config_idThe ID of the existing configuration from which to clone.
create_from_versionVersion number of the security configuration being cloned.

Attributes

There is no default standard output. Upon creation, the last line of the process log contains your configuration ID.

akamai_appsec_configuration.create_config: Creation complete after 14s [id=67890]