Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. data "akamai_property_rules_template" "rules-template" {
  2. template_file = abspath("${path.root}/property-snippets/main.json")
  3. variables {
  4. name = "secure"
  5. value = "${var.secure}"
  6. type = "bool"
  7. }
  8. variables {
  9. name = "cp_code_id"
  10. value = "${var.cp_code_id}"
  11. type = "number"
  12. }
  13. variables {
  14. name = "UserID"
  15. value = "${var.UserID}"
  16. type = "string"
  17. }
  18. variables {
  19. name = "origin_hostname"
  20. value = "${var.origin_hostname}"
  21. type = "string"
  22. }
  23. }
  24. resource "akamai_property" "lab_property" {
  25. name = "${var.UserID}-apiseclab"
  26. product_id = "prd_Fresca"
  27. contract_id = "ctr_${var.contract_id}"
  28. group_id = "grp_${var.group_id}"
  29. hostnames {
  30. cname_from = "${var.UserID}-apisecuritylab.com"
  31. cname_to = var.edge_hostname
  32. cert_provisioning_type = "CPS_MANAGED"
  33. }
  34. rule_format = "latest"
  35. rules = data.akamai_property_rules_template.rules-template.json
  36. }
  37. output "property_id" {
  38. value = "${akamai_property.lab_property.id}"
  39. }
  40. resource "akamai_property_activation" "activation_prod" {
  41. property_id = "${akamai_property.lab_property.id}"
  42. version = "${akamai_property.lab_property.latest_version}"
  43. network = "${var.network}"
  44. contact = ["${var.email}"]
  45. note = "API Security Lab"
  46. auto_acknowledge_rule_warnings = true
  47. compliance_record {
  48. noncompliance_reason_no_production_traffic {}
  49. }
  50. }