Skip to content

arldka/terraform-provider-artifacthub

Repository files navigation

Go Report Card FOSSA Status codecov Visitors Latest release

Artifacthub Terraform Provider

Terraform provider for Artifact Hub.

License

This repository is open source, please refer to the License for more information.

Getting Started & Documentation

If you're new to Terraform and want to get started creating infrastructure, please check out the Terraform official Getting Started guides on HashiCorp's learning platform. There are also additional guides to continue your learning.

Use the provider

terraform {
  required_providers {
    artifacthub = {
      version = "0.1.0"
      source  = "arldka/artifacthub"
    }
  }
}

provider "artifacthub" {
  # Configuration options
  api_key = "xxxx"
  api_key_secret = "xxxx"
  # OR USE THE ARTIFACTHUB_API_KEY and ARTIFACTHUB_API_KEY_SECRET ENVIRONMENT VARIABLES
}

Developing the provider

To learn more about how to contribute to the development of this provider please refer to the community guidelines.

Did you find a vulnerability? Please refer to the Security Policy for more information.

Makefile

The make command provides an easy way to access commands for local development of the provider.

  • To build the provider locally, you can execute the make command at the root of the project.

    make build
    

    Alternatively: 'go build -o terraform-provider-artifacthub'

  • To format all the go files in the project.

    make format
    

    Alternatively: 'gofmt -l -s -w .'

  • To generate documentation using the tfplugindocs plugin.

    make docs
    

    Alternatively: 'go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs'

Use locally built provider

  1. To build and install the provider locally, you can execute the following command at the root of the project.

    make install
    
  2. You can use the provider now by setting the source to "hashicorp.local/devoteamgcloud/looker"

terraform {
  required_providers {
    artifacthub = {
      version = "0.1.0"
      source  = "arldka.cloud/dev/artifacthub"
   }
 } 
}

Provider Resource Coverage

Data Sources

Packages

  • container
  • coredns
  • helm
  • helm-plugin
  • falco
  • gatekeeper
  • keda-scaler
  • keptn
  • krew
  • kubewarden
  • kyverno
  • opa
  • olm
  • tbaction
  • tekton-pipeline
  • tekton-task

Resources

  • User Webhooks
  • Org Webhooks

License

FOSSA Status