terraform-provider-circleci
terraform-provider-circleci copied to clipboard
Enable CircleCI project
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}"
}
}
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).
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