selectel / terraform-provider-selectel

Terraform Selectel provider

Home Page:https://www.terraform.io/docs/providers/selectel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Selectel Provider

Terraform Selectel Provider

Maintainers

This provider plugin is maintained by:

Requirements

  • Terraform 0.12.x
  • Go 1.21 (to build the provider plugin)

Building The Provider

Clone the repository

$ git clone git@github.com:selectel/terraform-provider-selectel.git

Enter the provider directory and build the provider

$ cd terraform-provider-selectel
$ make build

Using the provider

Getting Started with Terraform at Selectel: kb.selectel.com. Documentation is available at: docs/providers/selectel.
You can find examples in this repository: examples.
Also there are lots of examples in the selectel/terraform-examples.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.17+ is required).

To compile the provider, run make build. This will build the provider and put the provider binary in the current directory.

$ make build

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

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

Releasing the Provider

This repository contains a GitHub Action configured to automatically build and publish assets for release when a tag is pushed that matches the pattern v* (ie. v0.1.0).

A Gorelaser configuration is provided that produce build artifacts matching the layout required to publish the provider in the Terraform Registry.

Releases will as drafts. Once marked as published on the GitHub Releases page, they will become available via the Terraform Registry.

About

Terraform Selectel provider

https://www.terraform.io/docs/providers/selectel/

License:Mozilla Public License 2.0


Languages

Language:Go 98.3%Language:HTML 1.4%Language:Makefile 0.2%Language:Shell 0.1%