Skip to content
Proyek

scaleway/terraform-provider-scaleway

Lihat di GitHub

Tentang

Provider Terraform untuk Scaleway.

Sistem dan infrastruktur

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Terraform Provider for Scaleway

Requirements

All the development tools (Go, Terraform, OpenTofu, golangci-lint, ...) and their versions are pinned in mise.toml and installed with mise.

This single configuration drives the CI as well, so you can rely on it being complete.

Getting started

On your machine (recommended)

Install mise, then clone the repository and install the pinned tools:

mise install

As an alternative: devcontainer

If you prefer an isolated environment, a devcontainer with mise and the VS Code setup already configured is provided as a convenience:

  • Open the repository in VS Code and choose Reopen in Container (requires the Dev Containers extension).
  • The tools declared in mise.toml are resolved lazily the first time you run a task; run mise install once in the container to prefetch them all.

All the mise run ... commands below work the same in both setups.

Building The Provider

mise run build:provider

The binary is written to ./terraform-provider-scaleway (override the location with mise run build:provider --output <path>).

Using the provider

See the Scaleway Provider Documentation to get started using the Scaleway provider.

Developing the Provider

Run mise tasks to list every available task (build:*, test:*, lint:*, gen:*, ...). The most common ones are:

mise run build:provider                         # build the provider binary
mise run test:provider                          # run the unit tests
mise run test:provider --acceptance             # run the acceptance tests against the recorded mocks
mise run test:provider --acceptance --cassettes # run the acceptance tests against the real API and record cassettes
mise run lint:go                                # lint the Go code
mise run gen:doc                                # regenerate the provider documentation
mise run default                                # fast local loop: build + test + lint the provider

If you want to use your locally built provider with Terraform instead of the published one, you can take advantage of development overrides (dev_overrides) in the Terraform CLI configuration, and point Terraform/OpenTofu at that configuration with TF_CLI_CONFIG_FILE set in the git-ignored .env file.

Please refer to the TESTING.md for testing.

Jelajahi proyek terkait

Memuat…