Contract

akamai_contract

Get the contract associated with your group name or ID.

data "akamai_contract" "my_contract" {
     group_name = "my group name"
}

output "my_contract" {
    value = data.akamai_contract.my_contract
}
Changes to Outputs:
  + my_contract = {
      + group      = null
      + group_id   = "grp_12345"
      + group_name = "my group name"
      + id         = "ctr_C-0N7RAC7"
    }
variable "contract_id" {
  type = string
  description = "My contract ID"
  default = "C-0N7RAC7"
}
// local
contract_id = data.akamai_contract.my_contract.id

// tvars
contract_id = var.contract_id

Arguments

Pass one of your group name or ID in the data block.

ArgumentRequiredDescription
group_name✔️ if ID not passedYour group name.
group_id✔️ if name not passedYour group ID.

Attribute

Returned to you is your group's contract id with the ctr_ prefix.