CircleCI Ideas

CircleCI Terraform provider

CircleCI Terraform provider would be great addition as it would allow to manage CircleCI projects using code.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Apr 24 2018
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    December 03, 2018 14:57

    This would be an awesome addition to be able to automate the end to end creation of CCI pipelines.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    December 07, 2018 19:20

    Thanks! I'm not sure I follow...

    it would allow to manage CircleCI projects using code

    Isn't that how CircleCI projects are already managed?

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    December 07, 2018 20:10

    Rose:

    Not exactly, you can manage the configuration of a project in the YAML config, but not have the project itself start building, or manage parameters. For organizations with a large number of projects, managing which projects are building, and which options they have, is not ideal, since, as best I know, it can mostly only be managed via the web GUI. Also, setting up a job involves following it yourself, which is not always the  desired behavior.

    That said, even before the tf provider, I think some of these options would need to be exposed in the API. For example, I don't think you can update advanced build options (like 'only build PRs', 'preempt builds', enabling preview version, etc., except via the API.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    December 10, 2018 08:57

    @ Rose

    as Guest, said, the goal would be to manage the pipeline itself as code (in terraform) not the actual project which, as you say, is already code. Creating pipelines in CIrcleCI should be an automated process whereas it is currently a largely manual process.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    30 Mar 02:44

    There is this provider, for reference: https://github.com/mrolla/terraform-provider-circleci

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    08 May 09:19

    it would be nice if CircleCI forks those 3rd plugins and make their own plugin so it will be more reliable and up-to-date with circleci resource.