» 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.

  • project_id - (Optional) The Selectel VPC project. Used only to import resources that need an auth token in the project scope. If omitted, the SEL_PROJECT_ID environment variable is used.

  • region - (Optional) The Selectel VPC region. Used only to import resources associated with the specific region. If omitted, the SEL_REGION environment variable is used.

» 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.