terraform-provider-circleci icon indicating copy to clipboard operation
terraform-provider-circleci copied to clipboard

Enable CircleCI project

Open florisvdg opened this issue 5 years ago • 2 comments

Would be nice if the provider could enable CircleCI for a repo.

Cleanest interface would probably be something like:

resource "circleci_project" "my_project" {
  name = "${github_repository.my_project.name}"

  environment_variable {
    name  = "MY_SECRET_1"
    value = "${var.my_secret_1}"
  }

  environment_variable {
    name  = "MY_SECRET_2"
    value = "${var.my_secret_2}"
  }
}

florisvdg avatar Mar 08 '19 15:03 florisvdg

Hey @florisvdg, sorry for the tardy reply, somehow I missed the notification. I'll try and take a look into it and see if it's achievable with the current public api. I'll get back to you asap.

Edit: Ok this is doable and should be pretty straight forward (https://circleci.com/docs/api/#follow-a-new-project-on-circleci).

mrolla avatar Apr 01 '19 07:04 mrolla

hi folks,

i'm not sure if this is still a want, but I've added support to enable/start a project on my circleci provider: https://registry.terraform.io/providers/kelvintaywl/circleci/latest/docs/resources/project

kelvintaywl avatar Aug 29 '23 21:08 kelvintaywl