Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.46 KB

File metadata and controls

66 lines (48 loc) · 1.46 KB
page_title subcategory description
twc_project Resource - Timeweb Cloud
Resource for describing project. Learn more about projects in API documentation https://timeweb.cloud/api-docs#tag/Proekty

twc_project (Resource)

Resource for describing project. Learn more about projects in API documentation

Примеры использования

data "twc_os" "example-os" {
  name    = "ubuntu"
  version = "22.04"
}

data "twc_presets" "example-preset" {
  price_filter {
    from = 300
    to   = 400
  }
}

# Create new Project
resource "twc_project" "example-project" {
  name        = "Example"
  description = "Some example project"
}

# Usage example of created Project
resource "twc_server" "example-project" {
  name  = "Example project"
  os_id = data.twc_os.example-os.id

  preset_id = data.twc_presets.example-preset.id

  project_id = resource.twc_project.example-project.id
}

Schema

Required

  • name (String) Name for project

Optional

  • description (String) Description for project

Read-Only

  • id (String) The ID of this resource.
  • is_default (Boolean) Logical value indicating that new resources will be created under this project

Import

Import is supported using the following syntax:

# Project can be imported by specifying the numeric identifier from URL
terraform import twc_project.example 42