scaleway/terraform-provider-scaleway
关于
Scaleway 的 Terraform Provider。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.tomlare resolved lazily the first time you run a task; runmise installonce 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.
探索相关项目
加载中…