Group

akamai_group

Get your group's ID using its name and your contract ID.

data "akamai_group" "my_group_id" {
    group_name  = "My group name"
    contract_id = "ctr_C-0N7RAC7"
}

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

// tvars
group_id = var.group_id

Argument

Pass both your group's name and your contract's ID in the data block.

ArgumentRequiredDescription
group_name‚úĒÔłŹYour group name.
contract_id‚úĒÔłŹYour contract ID.

Attributes

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