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 |
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
}
name
(String) Name for project
description
(String) Description for project
id
(String) The ID of this resource.is_default
(Boolean) Logical value indicating that new resources will be created under this project
Import is supported using the following syntax:
# Project can be imported by specifying the numeric identifier from URL
terraform import twc_project.example 42