Git Product home page Git Product logo

terraform-provider-codefresh's Introduction

Terraform provider for Codefresh

This provider was initialized by LightStep and will be maintained as the official Terraform provider for Codefresh.

The provider is still under development, and can be used as a terraform third-party plugin only.

Requirements

  • Terraform 0.12+ ;
  • Go 1.12+ (to build the provider plugin).

Download Provider

Download and extract terraform-provider-codefresh from releases

Building the Provider

go build -o terraform-provider-codefresh

Using the Provider

Compile or take from the Releases terraform-provider-codefresh binary and place it locally according the Terraform plugins documentation.

for terraform 0.12:

  • ~/.terraform.d/plugins/linux_amd64
  • ./terraform.d/plugins/linux_amd64. The relative path in your Terraform project.

for terraform 0.13 follow required providers:

# OS  is linux|windows|darwin, ARCH is amd64|arm|x86
PLUGIN_DIR=~/.terraform.d/plugins/codefresh.io/app/codefresh/0.1.0/<OS_ARCH>
mkdir -p ${PLUGIN_DIR}
cp terraform-provider-codefresh  ${PLUGIN_DIR}/

add required_providers block

terraform {

  required_providers {
    codefresh = {
      versions = ["0.1.0"]
      source = "codefresh.io/app/codefresh"
    }
  }
}

To configure Codefresh provider:

provider "codefresh" {
  api_url = "<MY API URL>" # Default value - https://g.codefresh.io/api
  token = "<MY API TOKEN>" # If token isn't set the provider expects the $CODEFRESH_API_KEY env variable
}

Get an API key from Codefresh and set the following scopes:

  • Environments-V2
  • Pipeline
  • Project
  • Repos
  • Step-Type
  • Step-Types
  • View
export CODEFRESH_API_KEY='xyz'

Testing the Provider

License

Copyright 2020 Codefresh.

The Codefresh Provider is available under MPL2.0 license.

terraform-provider-codefresh's People

Contributors

alex-codefresh avatar kosta709 avatar lexual avatar palson-cf avatar pasha-codefresh avatar sandrogattuso avatar sharon-codefresh avatar simonbronner avatar vadimgusev-codefresh avatar zarbis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.