"options": { | "options": { | ||||
"matchOperator": "IS_ONE_OF", | "matchOperator": "IS_ONE_OF", | ||||
"values": [ | "values": [ | ||||
"<UserID>tflab-test.akaudevops.com" | |||||
"${env.UserID}tflab-test.akaudevops.com" | |||||
] | ] | ||||
} | } | ||||
} | } |
"options": { | "options": { | ||||
"matchOperator": "IS_ONE_OF", | "matchOperator": "IS_ONE_OF", | ||||
"values": [ | "values": [ | ||||
"<User ID>tflab-test.akaudevops.com" | |||||
"${env.UserID}tflab-test.akaudevops.com" | |||||
] | ] | ||||
} | } | ||||
} | } |
value = "${var.cp_code_id}" | value = "${var.cp_code_id}" | ||||
type = "number" | type = "number" | ||||
} | } | ||||
variables { | |||||
name = "user_id" | |||||
value = "${var.UserID}" | |||||
type = "bool" | |||||
} | |||||
} | } | ||||
resource "akamai_property" "lab_property" { | resource "akamai_property" "lab_property" { |
"options": { | "options": { | ||||
"matchOperator": "IS_ONE_OF", | "matchOperator": "IS_ONE_OF", | ||||
"values": [ | "values": [ | ||||
"<UserID>tflab-test.akaudevops.com" | |||||
"${env.UserID}tflab-test.akaudevops.com" | |||||
] | ] | ||||
} | } | ||||
} | } |
"options": { | "options": { | ||||
"matchOperator": "IS_ONE_OF", | "matchOperator": "IS_ONE_OF", | ||||
"values": [ | "values": [ | ||||
"<User ID>tflab-test.akaudevops.com" | |||||
"${env.UserID}tflab-test.akaudevops.com" | |||||
] | ] | ||||
} | } | ||||
} | } |
{ | |||||
"behaviors": [ | |||||
{ | |||||
"name": "modifyOutgoingResponseHeader", | |||||
"options": { | |||||
"action": "ADD", | |||||
"customHeaderName": "X-Test-Environment", | |||||
"headerValue": "true", | |||||
"standardAddHeaderName": "OTHER" | |||||
} | |||||
} | |||||
], | |||||
"criteria": [ | |||||
{ | |||||
"name": "hostname", | |||||
"options": { | |||||
"matchOperator": "IS_ONE_OF", | |||||
"values": [ | |||||
"${env.user_id}tflab-test.akaudevops.com" | |||||
] | |||||
} | |||||
} | |||||
], | |||||
"name": "Add testheader", | |||||
"options": {}, | |||||
"criteriaMustSatisfy": "all" | |||||
} |
"matchOperator": "IS_NOT", | "matchOperator": "IS_NOT", | ||||
"value": "CACHEABLE" | "value": "CACHEABLE" | ||||
} | } | ||||
}, | |||||
{ | |||||
"name": "hostname", | |||||
"options": { | |||||
"matchOperator": "IS_ONE_OF", | |||||
"values": [ | |||||
"${env.user_id}tflab-test.akaudevops.com" | |||||
] | |||||
} | |||||
} | } | ||||
], | ], | ||||
"name": "Uncacheable objects", | "name": "Uncacheable objects", | ||||
"options": {}, | "options": {}, | ||||
"criteriaMustSatisfy": "all" | |||||
"criteriaMustSatisfy": "any" | |||||
} | } | ||||
], | ], | ||||
"comments": "Control the settings related to caching content at the edge and in the browser. As a result, fewer requests go to your origin, fewer bytes leave your data centers, and your assets are closer to your users.", | "comments": "Control the settings related to caching content at the edge and in the browser. As a result, fewer requests go to your origin, fewer bytes leave your data centers, and your assets are closer to your users.", |
} | } | ||||
], | ], | ||||
"children": [ | "children": [ | ||||
"#include:Add_testheader.json", | |||||
"#include:Augment_insights.json", | "#include:Augment_insights.json", | ||||
"#include:Accelerate_delivery.json", | "#include:Accelerate_delivery.json", | ||||
"#include:Offload_origin.json", | "#include:Offload_origin.json", |
cname_to = var.edge_hostname | cname_to = var.edge_hostname | ||||
cert_provisioning_type = "CPS_MANAGED" | cert_provisioning_type = "CPS_MANAGED" | ||||
} | } | ||||
hostnames{ | |||||
cname_from = "${var.user_id}tflab-test.akaudevops.com" | |||||
cname_to = var.edge_hostname | |||||
cert_provisioning_type = "CPS_MANAGED" | |||||
} | |||||
rule_format = var.rule_format | rule_format = var.rule_format | ||||
rules = data.akamai_property_rules_template.rules-template.json | rules = data.akamai_property_rules_template.rules-template.json | ||||
} | } |