### Terraform Configuration for Samsung Cloud Platform v2 Provider Source: https://registry.terraform.io/providers/SamsungSDSCloud/samsungcloudplatformv2/latest/docs This snippet shows the basic Terraform configuration, including required providers and version constraints. It also includes an example of creating a virtual server instance. ```terraform terraform { required_providers { samsungcloudplatformv2 = { version = "3.3.1" source = "SamsungSDSCloud/samsungcloudplatformv2" } } required_version = ">= 1.11" } provider "samsungcloudplatformv2" { } //Create a new virtual server instance resource "samsungcloudplatformv2_virtualserver_server" "server" { name = var.name state = var.state image_id = var.image_id server_type_id = var.server_type_id #... } ``` -------------------------------- ### Create .scpconf Directory Source: https://registry.terraform.io/providers/SamsungSDSCloud/samsungcloudplatformv2/latest/docs This command creates the necessary .scpconf directory in the user's home directory for storing configuration files. ```bash cd %USERPROFILE% mkdir ".scpconf" ``` -------------------------------- ### Samsung Cloud Platform v2 Configuration File Source: https://registry.terraform.io/providers/SamsungSDSCloud/samsungcloudplatformv2/latest/docs This JSON object defines the authentication URL and default region for the Samsung Cloud Platform v2 API. These can also be set via environment variables SCP_TF_AUTH_URL and SCP_TF_DEFAULT_REGION. ```json { "auth-url": "https://iam.dev2.samsungsdscloud.com/v1", "default-region": "kr-west1" } ``` -------------------------------- ### Samsung Cloud Platform v2 Credentials File Source: https://registry.terraform.io/providers/SamsungSDSCloud/samsungcloudplatformv2/latest/docs This JSON object contains the access key and secret key required for authenticating with the Samsung Cloud Platform v2 API. These can also be set via environment variables SCP_TF_ACCESS_KEY and SCP_TF_SECRET_KEY. ```json { "access-key": "xxxxxxxxxxxxxx", "secret-key": "xxxxxxxxxxxxxx" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.