All Projects → sysdiglabs → terraform-provider-sysdig

sysdiglabs / terraform-provider-sysdig

Licence: MPL-2.0 license
Sysdig Terraform provider. Allow to handle Sysdig Secure policies as code.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to terraform-provider-sysdig

Terraform Provider Auth0
Auth0 Terraform Provider
Stars: ✭ 252 (+514.63%)
Mutual labels:  terraform-provider
terraform-provider-commercetools
Terraform provider for commercetools
Stars: ✭ 58 (+41.46%)
Mutual labels:  terraform-provider
terraform-provider-azurerm
Terraform provider for Azure Resource Manager
Stars: ✭ 3,829 (+9239.02%)
Mutual labels:  terraform-provider
terraform-provider-mysql
Terraform MySQL provider – This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
Stars: ✭ 59 (+43.9%)
Mutual labels:  terraform-provider
terraform-provider-logicmonitor
Terraform LogicMonitor provider.
Stars: ✭ 19 (-53.66%)
Mutual labels:  terraform-provider
terraform-provider-scaleway
Terraform Scaleway provider
Stars: ✭ 171 (+317.07%)
Mutual labels:  terraform-provider
Terraform Provider Unifi
Terraform provider for Unifi 📡
Stars: ✭ 239 (+482.93%)
Mutual labels:  terraform-provider
terraform-provider-redfish
Terraform provider for Redfish REST APIs
Stars: ✭ 54 (+31.71%)
Mutual labels:  terraform-provider
terraform-provider-twitter
No description or website provided.
Stars: ✭ 24 (-41.46%)
Mutual labels:  terraform-provider
terraform-provider-cisco-aci
Terraform provider for automating Cisco ACI enabled networks
Stars: ✭ 14 (-65.85%)
Mutual labels:  terraform-provider
terraform-provider-external
Utility provider that exists to provide an interface between Terraform and external programs. Useful for integrating Terraform with a system for which a first-class provider does not exist.
Stars: ✭ 136 (+231.71%)
Mutual labels:  terraform-provider
terraform-provider-oneview
Automates the provisioning of physical infrastructure from a private cloud using templates from HPE OneView with Terraform
Stars: ✭ 46 (+12.2%)
Mutual labels:  terraform-provider
terraform-provider-circleci
Terraform provider for CircleCI
Stars: ✭ 94 (+129.27%)
Mutual labels:  terraform-provider
terraform-provider-tsuru
Terraform provider for tsuru
Stars: ✭ 17 (-58.54%)
Mutual labels:  terraform-provider
terraform-provider-artifactory
Terraform provider for managing Artifactory
Stars: ✭ 17 (-58.54%)
Mutual labels:  terraform-provider
Terraform Provider Vault
Terraform Vault provider
Stars: ✭ 244 (+495.12%)
Mutual labels:  terraform-provider
terraform-provider-rancher
Terraform Rancher provider
Stars: ✭ 35 (-14.63%)
Mutual labels:  terraform-provider
terraform-provider-upcloud
Terraform provider for UpCloud
Stars: ✭ 52 (+26.83%)
Mutual labels:  terraform-provider
terraform-provider-fusionauth
registry.terraform.io/providers/gpsinsight/fusionauth/latest
Stars: ✭ 23 (-43.9%)
Mutual labels:  terraform-provider
terraform-provider-argocd
Terraform provider for ArgoCD
Stars: ✭ 245 (+497.56%)
Mutual labels:  terraform-provider
Terraform logo

Terraform Provider for Sysdig

Contribute

Initial Setup

Building

Requirements

  • Terraform > 0.12.x
  • Go > Go version specified in go.mod
    • Correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

Develop

First clone source repository to: $GOPATH/src/github.com/draios/terraform-provider-sysdig

$ git clone [email protected]:draios/terraform-provider-sysdig
$ cd terraform-provider-sysdig
$ make build

Compile

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-sysdig
...

Tests

In order to test the provider, you can simply run make test.

$ make test

Acceptance Tests

If you want to execute the acceptance tests, you can run make testacc.

$ make testacc

Install (local)

To use the local provider you just built, follow the instructions to install it as a plugin. in your machine with:

$ make install

That will add the provider to the terraform plugins dir. Then just set source and version values appropriately:

provider "aws" {
  region = my_region
}

terraform {
  required_providers {
    sysdig = {
      source = "local/sysdiglabs/sysdig"
      version = "~> 1.0.0"
    }
  }
}

To uninstall the plugin:

$ make uninstall

Creating new resource / data sources

TL;DR;

  • Create the resource/data source item
  • Add the created item into the provider.go resource or datasource map with its wiring
  • With its acceptance test
  • Add its documentation page on ./website/docs/

Interesting resources

Proposing PR's

Release

To create a new release, create and push a new tag, and it will be released following /. github/workflows/release.yml.

  • Before releasing check the diff between previous tag and master branch, to spot major changes
  • For tag, use semver
  • Review Released Draft Note, and make it as clear as possible.
  • Notify Sysdig teams on our internal #release-announcements slack channel and optionally in #terraform-provider

Mange takk!

giphy

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].