» Selectel provider

The Selectel provider is used to interact with the Selectel resources. The provider needs the Selectel API key token to authorize its requests.

Use the navigation to the left to read about the available resources.

» Example Usage

# Configure the Selectel Provider
provider "selectel" {
  token = "SELECTEL_API_TOKEN_KEY"
}

# Create a project
resource "selectel_vpc_project_v2" "project_1" {
  # ...
}

» Configuration Reference

The following arguments are supported:

  • token - (Required) The Selectel API key token. If omitted, the SEL_TOKEN environment variable is used.

  • endpoint - (Optional) The Selectel VPC endpoint. Needed only if this provider is used for tests environment. If omitted, the provider will use the official Selectel VPC endpoint automatically.

» Additional Logging

To enable debug logging, set the TF_LOG environment variable to DEBUG:

$ env TF_LOG=DEBUG terraform apply

» Testing and Development

In order to run the Acceptance Tests for development you need to set the SEL_TOKEN environment variable:

$ env SEL_TOKEN=SELECTEL_API_TOKEN TF_ACC=1 go test -v ./selectel/...

Please create an issue describing a new feature or bug prior creating a pull request.