選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

protections.tf 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Enable/Disable Protections for policy
  2. resource "akamai_appsec_waf_protection" "waf_protection" {
  3. config_id = akamai_appsec_configuration.config.config_id
  4. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  5. enabled = true
  6. }
  7. resource "akamai_appsec_api_constraints_protection" "api_request_constraints" {
  8. config_id = akamai_appsec_configuration.config.config_id
  9. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  10. enabled = true
  11. }
  12. resource "akamai_appsec_ip_geo_protection" "ip_geo_protection" {
  13. config_id = akamai_appsec_configuration.config.config_id
  14. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  15. enabled = true
  16. }
  17. resource "akamai_appsec_malware_protection" "malware_protection" {
  18. config_id = akamai_appsec_configuration.config.config_id
  19. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  20. enabled = true
  21. }
  22. resource "akamai_appsec_rate_protection" "rate_protection" {
  23. config_id = akamai_appsec_configuration.config.config_id
  24. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  25. enabled = true
  26. }
  27. resource "akamai_appsec_reputation_protection" "reputation_protection" {
  28. config_id = akamai_appsec_configuration.config.config_id
  29. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  30. enabled = true
  31. }
  32. resource "akamai_appsec_slowpost_protection" "slowpost_protection" {
  33. config_id = akamai_appsec_configuration.config.config_id
  34. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  35. enabled = true
  36. }
  37. resource "akamai_botman_bot_management_settings" "bot_management" {
  38. config_id = akamai_appsec_configuration.config.config_id
  39. security_policy_id = akamai_appsec_security_policy.security_policy.security_policy_id
  40. bot_management_settings = jsonencode(
  41. {
  42. "addAkamaiBotHeader" : false,
  43. "enableActiveDetections" : true,
  44. "enableBotManagement" : true,
  45. "enableBrowserValidation" : false,
  46. "removeBotManagementCookies" : false,
  47. "thirdPartyProxyServiceInUse" : false
  48. }
  49. )
  50. }