terraform-provider-codefresh

command module
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

README

Terraform Provider for Codefresh

This is the official Terraform Provider for Codefresh.

Terraform Registry: registry.terraform.io/providers/codefresh-io/codefresh

Requirements

Download the Provider

Download and extract terraform-provider-codefresh from releases

Using the Provider

In versions.tf:

terraform {
  required_providers {
    codefresh = {
      version = "x.y.z" # Optional but recommended; replace with latest semantic version
      source = "codefresh-io/codefresh"
    }
  }
}

Building the Provider Locally

make install

Provider Documentation

The documentation is generated using tfplugindocs.

See: CONTRIBUTING.md

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

NOTE: Acceptance tests create real resources, including admin resources (accounts, users) so make sure that CODEFRESH_API_KEY is set to an account that you are ok with being modified.

make testacc

Contributors

Acknowledgements

This provider was initialized by LightStep.

License

Copyright 2023 Codefresh.

The Codefresh Provider is available under MPL2.0 license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal/acctestutil
Package acctestutil provides utilities for Terraform acceptance tests.
Package acctestutil provides utilities for Terraform acceptance tests.
internal/datautil
Package datautil provides utilities for working with data types.
Package datautil provides utilities for working with data types.
internal/gitops
Shared types, schemas and functions for gitops
Shared types, schemas and functions for gitops
internal/idp
Package idp is shared by idp-related resources.
Package idp is shared by idp-related resources.
internal/schemautil
Package schemautil provides utilities for working with Terraform resource schemas.
Package schemautil provides utilities for working with Terraform resource schemas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL