12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- resource "akamai_cloudlets_policy" "cloudlet_policy" {
- name = "${var.UserID}RCPolicy"
- cloudlet_code = "IG"
- description = "AkaU RC cloudlet lab"
- group_id = var.group_id
- match_rules = <<-EOF
- [
- {
- "type": "igMatchRule",
- "name": "Prevent GETs at login endpoint",
- "start": 0,
- "end": 0,
- "matchURL": null,
- "matches": [
- {
- "objectMatchValue": {
- "type": "simple",
- "value": [
- "POST"
- ]
- },
- "matchOperator": "equals",
- "negate": true,
- "caseSensitive": false,
- "matchType": "method"
- },
- {
- "matchValue": "/rest/user/login",
- "matchOperator": "equals",
- "negate": false,
- "caseSensitive": false,
- "matchType": "path"
- }
- ],
- "allowDeny": "deny"
- }
- ]
- EOF
- }
-
- resource "akamai_cloudlets_policy_activation" "activation" {
- policy_id = "${akamai_cloudlets_policy.cloudlet_policy.id}"
- network = "staging"
- associated_properties = ["${var.UserID}-tflab"]
- version = 1
- }
|