ilijamt/terraform-provider-awx

Please add instance group under resource awx_job_template

Closed this issue · 4 comments

Hi,
Can you add a option to select instance group while creating awx templates

Thanks
Sujish

Hi, Yeah, this seems like it's an extra call after you create a Job template. It will be better if it’s just a new resource to assign it. I'll take care of it this week.

@Sujishv can you test now? I've added a resource to associate the IDs. Here is an example.

resource "awx_job_template_associate_instance_group" "ig" {
  instance_group_id = awx_instance_group.ig.id
  job_template_id   = awx_job_template.instance_group.id
}

New release is up

Thanks it s working, one doubt why cant we cant directly under resource awx_job_template ?

It's a separate call under the AWX API, it's not part of the creation of a job template.