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.

GetAssets.tf 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. terraform {
  2. required_providers {
  3. akamai = {
  4. source = "akamai/akamai"
  5. version = "5.2.0"
  6. }
  7. }
  8. }
  9. provider "akamai" {
  10. edgerc = "~/.edgerc"
  11. config_section = "default"
  12. }
  13. data "akamai_contracts" "AkaULab_Contracts" {
  14. }
  15. output "AkaULabContracts" {
  16. value = data.akamai_contracts.AkaULab_Contracts
  17. }
  18. locals {
  19. contract_id = data.akamai_contracts.AkaULab_Contracts.contracts[0].contract_id
  20. group_id = data.akamai_group.AkUTerraformLabs.id
  21. cp_code_id = data.akamai_cp_code.TerraformLabs_CPCode.id
  22. cp_code_name = data.akamai_cp_code.TerraformLabs_CPCode.name
  23. product_id = data.akamai_property_products.AkaU_Products.products[2].product_id
  24. }
  25. data "akamai_group" "AkUTerraformLabs"{
  26. group_name = "AkaU Terraform Labs"
  27. contract_id = local.contract_id
  28. }
  29. output "AkaUTerraformLabs_groupId"{
  30. value = data.akamai_group.AkUTerraformLabs.id
  31. }
  32. data "akamai_cp_code" "TerraformLabs_CPCode" {
  33. name = "TerraformLabs"
  34. group_id = local.group_id
  35. contract_id = local.contract_id
  36. }
  37. output "TerraformLabs_CPCode"{
  38. value = data.akamai_cp_code.TerraformLabs_CPCode
  39. }
  40. data "akamai_property_products" "AkaU_Products" {
  41. contract_id = local.contract_id
  42. }
  43. output "AkaU_Products" {
  44. value = data.akamai_property_products.AkaU_Products
  45. }
  46. data "akamai_cps_enrollments" "AkaULab_Enrollments" {
  47. contract_id = replace(local.contract_id, "ctr_", "")
  48. }
  49. output "AkaULab_Enrollments" {
  50. value = data.akamai_cps_enrollments.AkaULab_Enrollments
  51. }