The page has been translated by Gen AI.
icon

Deploying Samsung Cloud Platform services using Terraform

Deploying Samsung Cloud Platform services using Terraform

Overview

Terraform is a IaC(Infrastructure as Code) tool that supports configuring and managing infrastructure resources through code. You can automatically provision and manage various resources of Samsung Cloud Platform by using the open-source Terraform tool and the Terraform Provider developed for Samsung Cloud Platform.

This document explains the preparatory steps and the process and methods for deploying multiple resources to the production Samsung Cloud Platform.

Architecture Diagram

Diagram
Figure. Service architecture using Terraform on Samsung Cloud Platform (Multi-Region)
  1. Generate an authentication key for Terraform operations on Samsung Cloud Platform and configure the environment.
  2. Create the configuration for resources and environment to be deployed to Samsung Cloud Platform as code (.tf file).
  3. Fetch the Provider for the deployment environment from an external repository (Terraform Registry). 3. (terraform init)
  4. Execute Terraform commands to verify the resource creation plan on Samsung Cloud Platform and perform the infrastructure provisioning. 4. (terraform plan → terraform apply)
  5. Verify the creation of infrastructure resources through the console and the infrastructure state file (.tfstate). 5. (terraform state list)

Use Cases

Configure identical work environment in Multi Region

When operating the same application environment across multiple domestic and international sites, you can use Terraform to deploy and manage resources simultaneously across multiple regions available in the Samsung Cloud Platform Project. By using a code-based deployment method, operators can reduce work time and minimize potential human errors that may occur during deployment and management.

Landing Zone configuration

When repeatedly setting up new services or affiliate environments, you can manage the Landing Zone—configured based on Samsung Cloud Platform best practices—as Terraform code, enabling rapid deployment across multiple environments with high reusability. Resources such as networking and workloads that require pre‑configuration for a user to deploy an application are pre‑written as Terraform code, and deploying that code automatically creates the predefined Landing Zone.

Prerequisites

  • Terraform must be installed and an internet connection is required in the user’s work environment.
  • API communication between the user’s work environment and the target Samsung Cloud Platform must be possible. * (443 port)

Constraints

The list of products that can be deployed to Samsung Cloud Platform using Terraform is continuously being added. For detailed information, please refer to the Samsung Cloud Platform Provider Documentation on the Terraform Registry.

Considerations

  • Care must be taken to ensure that the Credential information for Samsung Cloud Platform used during Terraform operations is not exposed externally.
  • Since the .tfstate file generated after the operation records all information about the created resources, please store it in a secure location.
Caution
If the .tfstate file is deleted, Terraform cannot recognize the current state of the resources it deployed, making additional actions such as deleting or modifying those resources impossible.

Related service

This is a list of Samsung Cloud Platform services that are related to the features or configurations described in this guide. Refer to this when selecting and designing services.

service groupserviceDetailed description
ManagementIAMA service that controls the scope of access to services and resources by verifying user identity and granting access permissions.
ManagementOrganizationA service that organizes Accounts by organizational units, manages them hierarchically, and controls resource access permissions.
ManagementQuota ServiceA service that manages the maximum number of resources, tasks, or items (quotas) set for each service within an account
ManagementResource GroupsA service that groups resources for efficient management
ManagementServiceWatchA service that collects metrics, logs, events, and other data from created resources for monitoring, and provides various tools that deliver observability across resources, including performance and operational status.
ManagementLogging&AuditA service that stores all user actions to support change tracking and auditing of cloud resources.
ManagementResource ExplorerA service that integrates search of created resources and manages tags
ComputeVirtual ServerVirtual server optimized for cloud computing
ComputeBare Metal ServerA high-performance physical server that can be allocated and used exclusively with physically separated computing resources such as CPU and memory, without virtualization.
ComputeBlock StorageStorage that stores data in block units and is used for large-scale data processing and DB workloads.
ComputeMulti-node GPU ClusterA server that provides physical GPU servers without virtualization for large‑scale, high‑performance AI computation.
StorageBlock Storage(BM)Block storage used by connecting to a Bare Metal Server
StorageFile StorageA storage solution that lets servers connected through a network easily store and share data.
StorageParallel File StorageHigh-performance parallel file storage based on All NVMe that can process large-scale data quickly and efficiently.
StorageBackupA service that securely backs up user data and restores it in case of emergencies.
NetworkingVPCA service that provides a logically isolated, customer-dedicated private network space in a cloud environment.
NetworkingSecurity GroupA virtual logical firewall that controls inbound/outbound traffic on virtual servers
NetworkingFirewallA virtual logical firewall service that controls traffic generated in VPCs and Load Balancers
NetworkingLoad BalancerA service that automatically distributes traffic to available servers when traffic spikes or server failures occur that are difficult for users to predict.
NetworkingGSLBA service that automatically distributes network traffic to available neighboring regions based on DNS when traffic increases in a specific global region.
NetworkingDNSA service that converts domain names, which are convenient for people to recognize, into numeric IP addresses that the system can identify, allowing access to the service.
NetworkingDirect ConnectA service that securely and quickly connects the customer network with Samsung Cloud Platform
NetworkingVPNA service that connects the customer network and Samsung Cloud Platform via an encrypted virtual private network.
ContainerKubernetes EngineA service that provides lightweight virtual computing, containers, and a Kubernetes cluster to manage them.
DatabaseMySQL(DBaaS)A service that easily creates and manages the open-source relational database (RDBMS) MySQL
DatabaseMariaDB(DBaaS)A service that easily creates and manages MariaDB with high compatibility with MySQL
DatabasePostgreSQL(DBaaS)A service that easily creates and manages open-source PostgreSQL
DatabaseEPAS(DBaaS)A service that easily creates and manages EPAS
DatabaseMicrosoft SQL Server(DBaaS)A service that easily creates and manages Microsoft SQL Server
DatabaseCacheStore(DBaaS)Key-value in-memory data store with fast data processing capability
Data AnalyticsSearch EngineA service that easily creates and manages Elasticsearch Enterprise and OpenSearch versions.
Data AnalyticsEvent StreamsA service that easily creates and manages Apache Kafka clusters
Data AnalyticsVertica(DBaaS)Data Warehouse-based high-availability enterprise database for large-scale data analysis/processing
SecurityCertificate ManagerA service that supports distribution and integrated management of SSL/TLS certificates issued to the user by a Certificate Authority (CA).
Financial ManagementPlanned ComputeA discount policy that allows using non‑contract resources at contract rates by committing to a usage period for a server type.
Financial ManagementCost ManagementA service that manages service costs and enables efficient access to cost-related information.
Table. List of related services