Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

cloudlet-policy.tf 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. resource "akamai_cloudlets_policy" "cloudlet_policy" {
  2. name = "${var.user_id}RCPolicy"
  3. cloudlet_code = "IG"
  4. description = "AkaU RC cloudlet lab"
  5. group_id = var.group_id
  6. match_rules = <<-EOF
  7. [
  8. {
  9. "type": "igMatchRule",
  10. "name": "Prevent GETs at login endpoint",
  11. "start": 0,
  12. "end": 0,
  13. "matchURL": null,
  14. "matches": [
  15. {
  16. "objectMatchValue": {
  17. "type": "simple",
  18. "value": [
  19. "POST"
  20. ]
  21. },
  22. "matchOperator": "equals",
  23. "negate": true,
  24. "caseSensitive": false,
  25. "matchType": "method"
  26. },
  27. {
  28. "matchValue": "/rest/user/login",
  29. "matchOperator": "equals",
  30. "negate": false,
  31. "caseSensitive": false,
  32. "matchType": "path"
  33. }
  34. ],
  35. "allowDeny": "deny"
  36. }
  37. ]
  38. EOF
  39. }
  40. output "cloudlet_policy_id" {
  41. value = "${akamai_cloudlets_policy.cloudlet_policy.id}"
  42. }
  43. resource "akamai_cloudlets_policy_activation" "activation" {
  44. policy_id = "${akamai_cloudlets_policy.cloudlet_policy.id}"
  45. network = var.network
  46. associated_properties = ["${var.user_id}-tflab"]
  47. version = 1
  48. }