Feature Request: ability to trigger Gitlab CI Pipeline as Provisioner

Created by: Andor

Hello!

That's could be cool of we will have the feature to trigger gitlab-ci pipeline from Terraform. I guess via provisioner provider.

Example of code:

resource "aws_instance" "instance" {
  count = 3
  ...
  provisioner "gitlab-ci-pipeline" {
    project = "my-gitlab-project"
    branch = "branch-to-trigger-pipeline-on"
    variables = {
      host_to_provision = aws_instance.myinstance[count.index].private_ip
    }
    wait = true
  }
}

Yeah, I know this is possible with local-exec and curl, but you may agree it is not so nice anyhow.

Also I personally run Terraform from docker container and it is simplier to not continain curl inside.

Assignee Loading
Time tracking Loading