Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform ~48 phút ~48 min ~48 នាទី Đồng bộ 2026-06-10 Synced 2026-06-10 ធ្វើសមកាល 2026-06-10

Thêm một site Add a site បន្ថែមគេហទំព័រ

Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page. មគ្គុទ្ទេសក៍លម្អិតធ្វើសមកាលពី docs Cloudflare — ផ្នែកនីមួយៗមានតំណទៅទីតាំងត្រូវគ្នានៅទំព័រផ្លូវការ។

← Danh mục ← Catalog ← បញ្ជី

Giải thích nhanh Quick context បរិបទរហ័ស

Thuộc Developer Platform — thực hành triển khai code, API và dữ liệu trên edge/serverless. Tutorial «Thêm site» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Docs gốc chia khoảng 6 bước chính; bản tóm tắt dưới đây giúp bạn nắm khung trước khi làm theo từng lệnh.

This tutorial uses Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle.

ការបង្រៀននេះប្រើហេដ្ឋារចនាសម្ព័ន្ធ Pulumi ជាកូដ (IaC) ដើម្បីស្គាល់ខ្លួនអ្នកជាមួយនឹងវដ្តជីវិតនៃការគ្រប់គ្រងធនធាន។

Lưu ý Note ចំណាំ

Lưu ý trước khi làm Notes before you start ចំណាំមុនពេលចាប់ផ្តើម

  • Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
  • Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
  • Kiểm tra token/API và state backend trước khi chạy trên môi trường production.
  • Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
  • This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
  • Open the Official docs link below for CLI commands, code snippets, and full screenshots.
  • Verify API tokens and the state backend before running against production.
  • Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.
  • នេះគឺជាការសង្ខេបនៅលើ Orange Cloud Learning Hub — វាមិនជំនួសឯកសារផ្លូវការទេ។
  • បើកតំណឯកសារផ្លូវការខាងក្រោមសម្រាប់ពាក្យបញ្ជា CLI កូដ snippets និងរូបថតអេក្រង់ពេញ។
  • ផ្ទៀងផ្ទាត់ API សញ្ញាសម្ងាត់ និងផ្នែកខាងក្រោយរបស់រដ្ឋ មុនពេលដំណើរការប្រឆាំងនឹងការផលិត។
  • Cloudflare ឯកសារផ្លាស់ប្តូរជាញឹកញាប់ — ផ្ទៀងផ្ទាត់កាលបរិច្ឆេទដែលបានពិនិត្យចុងក្រោយនៅលើទំព័រផ្លូវការមុនពេលប្រើប្រាស់ផលិតកម្ម។

Tài liệu gốc — rà soát lần cuối: over 1 year ago Official docs — last reviewed: over 1 year ago ឯកសារផ្លូវការ — ពិនិត្យចុងក្រោយ: over 1 year ago

Overview Overview ទិដ្ឋភាពទូទៅ

Phần «Tổng quan» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទិដ្ឋភាពទូទៅ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trong hướng dẫn này, bạn sẽ làm theo các hướng dẫn từng bước để đưa một trang web hiện có đến Cloudflare bằng cách sử dụng cơ sở hạ tầng Pulumi như mã (IaC) để làm quen với vòng đời quản lý tài nguyên. Đặc biệt, bạn sẽ tạo một Zone và một DNS bản ghi để giải quyết trang web mới của bạn. Hướng dẫn này áp dụng nguyên tắc IaC để hoàn thành các bước được liệt kê trong Add site tutorial.
In this tutorial, you will follow step-by-step instructions to bring an existing site to Cloudflare using Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle. In particular, you will create a Zone and a DNS record to resolve your newly added site. This tutorial adopts the IaC principle to complete the steps listed in the Add site tutorial.
នៅក្នុងមេរៀននេះ អ្នកនឹងធ្វើតាមការណែនាំជាជំហានៗ ដើម្បីនាំយកគេហទំព័រដែលមានស្រាប់ទៅកាន់ Cloudflare ដោយប្រើហេដ្ឋារចនាសម្ព័ន្ធ Pulumi ជាកូដ (IaC) ដើម្បីស្គាល់ខ្លួនអ្នកជាមួយនឹងវដ្តជីវិតនៃការគ្រប់គ្រងធនធាន។ ជាពិសេស អ្នកនឹងបង្កើត Zone និងកំណត់ត្រា DNS ដើម្បីដោះស្រាយគេហទំព័រដែលបានបន្ថែមថ្មី។ ការបង្រៀននេះទទួលយក IaC principle ដើម្បីបញ្ចប់ជំហានដែលមានរាយបញ្ជីនៅក្នុង Add-site tutorial.
Bạn sẽ cung cấp các tài nguyên đủ điều kiện theo các ưu đãi cấp miễn phí cho cả Pulumi Cloud và Cloudflare.
You will provision resources that qualify under free tier offerings for both Pulumi Cloud and Cloudflare.
អ្នកនឹងផ្តល់ធនធានដែលមានលក្ខណៈគ្រប់គ្រាន់ក្រោមការផ្តល់ជូនកម្រិតឥតគិតថ្លៃសម្រាប់ទាំង Pulumi Cloud និង Cloudflare ។

Trước khi bạn bắt đầu Before you begin មុនពេលអ្នកចាប់ផ្តើម

Phần «Before you begin» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Before you begin" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «មុនពេលអ្នកចាប់ផ្តើម» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Đảm bảo bạn có:
Ensure you have:
ត្រូវប្រាកដថាអ្នកមាន៖
  • Một tài khoản Cloudflare và API Token với quyền chỉnh sửa các tài nguyên trong hướng dẫn này. Nếu bạn cần, hãy đăng ký Cloudflare account ↗ trước khi tiếp tục. Token của bạn phải có:
  • A Cloudflare account and API Token with permission to edit the resources in this tutorial. If you need to, sign up for a Cloudflare account ↗ before continuing. Your token must have:
  • គណនី Cloudflare និង API Token ដោយមានការអនុញ្ញាតដើម្បីកែសម្រួលធនធាននៅក្នុងមេរៀននេះ។ ប្រសិនបើអ្នកត្រូវការ សូមចុះឈ្មោះសម្រាប់ Cloudflare គណនី ↗ មុនពេលបន្ត។ និមិត្តសញ្ញារបស់អ្នកត្រូវតែមាន៖
Zone-Zone-Edit quyền Zone-DNS-Edit quyền * include-All zones from an account-<your account> khu vực tài nguyên
Zone-Zone-Edit permission Zone-DNS-Edit permission * include-All zones from an account-<your account> zone resource
Zone-Zone-Edit ការអនុញ្ញាត Zone-DNS-Edit ការអនុញ្ញាត * include-All zones from an account-<your account>

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

1.Điều Khởi đầu dự án của bạn 1. Initialize your project 1. ចាប់ផ្តើមគម្រោងរបស់អ្នក។

Phần «Khởi tạo your dự án» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "1. Initialize your project" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «1. ចាប់ផ្តើមគម្រោងរបស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một dự án Pulumi là một bộ sưu tập các tệp trong một thư mục chuyên dụng mô tả cơ sở hạ tầng bạn muốn tạo. Thư mục dự án Pulumi được xác định bằng tệp Pulumi.yaml cần thiết. Bạn sẽ sử dụng Pulumi CLI để tạo và cấu hình một dự án mới.
A Pulumi project is a collection of files in a dedicated folder that describes the infrastructure you want to create. The Pulumi project folder is identified by the required Pulumi.yaml file. You will use the Pulumi CLI to create and configure a new project.
គម្រោង Pulumi គឺ​ជា​បណ្តុំ​នៃ​ឯកសារ​ក្នុង​ថត​ដែល​បាន​កំណត់​ដែល​ពិពណ៌នា​អំពី​ហេដ្ឋារចនាសម្ព័ន្ធ​ដែល​អ្នក​ចង់​បង្កើត។ ថតឯកសារគម្រោង Pulumi ត្រូវបានកំណត់អត្តសញ្ញាណដោយឯកសារ Pulumi.yaml ដែលត្រូវការ។ អ្នកនឹងប្រើ Pulumi CLI ដើម្បីបង្កើត និងកំណត់រចនាសម្ព័ន្ធគម្រោងថ្មី។

A ơi Tạo Directory a. Create a directory ក. បង្កើតថតឯកសារ

Phần «. Create directory» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "a. Create a directory" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ក. បង្កើតថតឯកសារ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Sử dụng một thư mục mới và trống cho hướng dẫn này.
Use a new and empty directory for this tutorial.
ប្រើថតថ្មី និងទទេសម្រាប់ការបង្រៀននេះ។
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
mkdir addsite-cloudflare

cd addsite-cloudflare

B . Tải về Pulumi Cloud b. Login to Pulumi Cloud ខ. ចូលទៅ Pulumi Cloud

Phần «b. Login to Pulumi Cloud» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "b. Login to Pulumi Cloud" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ខ. ចូលទៅ Pulumi Cloud» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Pulumi Cloud ↗ là một dịch vụ được lưu trữ cung cấp một nền tảng an toàn và có thể mở rộng để quản lý cơ sở hạ tầng của bạn dưới dạng mã. Bạn sẽ sử dụng nó để lưu trữ cấu hình backend Pulumi của bạn.
Pulumi Cloud ↗ is a hosted service that provides a secure and scalable platform for managing your infrastructure as code. You will use it to store your Pulumi backend configurations.
Pulumi Cloud ↗ គឺជាសេវាកម្មបង្ហោះដែលផ្តល់នូវវេទិកាសុវត្ថិភាព និងអាចធ្វើមាត្រដ្ឋានបានសម្រាប់ការគ្រប់គ្រងហេដ្ឋារចនាសម្ព័ន្ធរបស់អ្នកជាកូដ។ អ្នក​នឹង​ប្រើ​វា​ដើម្បី​រក្សា​ទុក​ការ​កំណត់​រចនាសម្ព័ន្ធ​កម្មវិធី​ខាងក្រោយ​របស់ Pulumi ។
Nhấn Enter để đăng nhập vào tài khoản Pulumi Cloud của bạn thông qua trình duyệt. Ngoài ra, bạn có thể cung cấp một Pulumi Cloud access token ↗.
At the prompt, press Enter to log into your Pulumi Cloud account via the browser. Alternatively, you may provide a Pulumi Cloud access token ↗.
នៅប្រអប់បញ្ចូល សូមចុច Enter ដើម្បីចូលទៅក្នុងគណនី Pulumi Cloud របស់អ្នកតាមរយៈកម្មវិធីរុករក។ Alternatively, អ្នកអាចផ្តល់នូវ access សញ្ញាសម្ងាត់ ↗។
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi login

C . Tạo một chương trình mới c. Create a new program គ. បង្កើតកម្មវិធីថ្មី។

Phần «C. Create mới program» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "c. Create a new program" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «គ. បង្កើតកម្មវិធីថ្មី។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một chương trình Pulumi là mã viết bằng chữ supported programming language ↗ xác định tài nguyên cơ sở hạ tầng.
A Pulumi program is code written in a supported programming language ↗ that defines infrastructure resources.
កម្មវិធី Pulumi គឺសរសេរកូដនៅក្នុង ភាសាកម្មវិធីដែលគាំទ្រ ↗ ដែលកំណត់ធនធានហេដ្ឋារចនាសម្ព័ន្ធ។
Để tạo một chương trình, hãy chọn ngôn ngữ của bạn và chạy lệnh pulumi:
To create a program, select your language of choice and run the pulumi command:
ដើម្បីបង្កើតកម្មវិធី សូមជ្រើសរើសភាសាដែលអ្នកជ្រើសរើស ហើយដំណើរការពាក្យបញ្ជា pulumi៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new javascript --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new typescript --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new python --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new go --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new java --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new csharp --name addsite-cloudflare --yes

# wait a few seconds while the project is initialized
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi new yaml --name addsite-cloudflare --yes

D . Tạo Stack d. Create a stack ឃ. បង្កើតជង់មួយ។

Phần «D. Create stack» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "d. Create a stack" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ឃ. បង្កើតជង់មួយ។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một Pulumi stack ↗ là một trường hợp của một chương trình Pulumi. Stacks có thể được cấu hình độc lập và có thể đại diện cho các môi trường khác nhau (phát triển, triển lãm, sản xuất) hoặc các chi nhánh tính năng. Đối với hướng dẫn này, bạn sẽ sử dụng dev stack.
A Pulumi stack ↗ is an instance of a Pulumi program. Stacks are independently configurable and may represent different environments (development, staging, production) or feature branches. For this tutorial, you'll use the dev stack.
Pulumi ជង់ ↗ គឺជាឧទាហរណ៍នៃកម្មវិធី Pulumi ។ ជង់​អាច​កំណត់​រចនាសម្ព័ន្ធ​បាន​ដោយ​ឯករាជ្យ ហើយ​អាច​តំណាង​ឱ្យ​បរិស្ថាន​ផ្សេង​គ្នា (ការអភិវឌ្ឍន៍ ដំណាក់កាល ផលិតកម្ម) ឬ​សាខា​លក្ខណៈ។ សម្រាប់មេរៀននេះ អ្នកនឹងប្រើជង់ dev ។
Để khởi động dev stack của bạn, chạy:
To instantiate your dev stack, run:
ដើម្បីធ្វើឲ្យជង់ dev របស់អ្នកភ្លាមៗ សូមដំណើរការ៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi up --yes

# wait a few seconds for the stack to be instantiated.
Bạn chưa xác định bất kỳ tài nguyên nào tại thời điểm này, vì vậy bạn sẽ có một stack trống.
You have not defined any resources at this point, so you'll have an empty stack.
អ្នកមិនបានកំណត់ធនធានណាមួយនៅចំណុចនេះទេ ដូច្នេះអ្នកនឹងមានជង់ទទេ។

E ơi Save settings của bạn e. Save your settings អ៊ី រក្សាទុកការកំណត់របស់អ្នក។

Phần «e. Save your settings» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "e. Save your settings" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «អ៊ី រក្សាទុកការកំណត់របស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trong bước này, bạn sẽ lưu cài đặt của mình trong Pulumi ESC Environment ↗, một tập tin YAML chứa cấu hình và bí mật. Chúng có thể được truy cập theo nhiều cách, bao gồm một chương trình Pulumi. Tất cả các môi trường ESC đều an toàn trong tài khoản Pulumi Cloud của bạn và có thể được quản lý hoàn toàn thông qua Pulumi CLI. Đối với hướng dẫn này, bạn sẽ lưu trữ các giá trị sau:
In this step, you will store your settings in a Pulumi ESC Environment ↗, a YAML file containing configurations and secrets. These can be accessed in several ways, including a Pulumi program. All ESC Environments securely reside in your Pulumi Cloud account and can be fully managed via the Pulumi CLI. For this tutorial, you will store the following values:
នៅក្នុងជំហាននេះ អ្នកនឹងរក្សាទុកការកំណត់របស់អ្នកនៅក្នុង Pulumi ESC Environment ↗ ដែលជាឯកសារ YAML ដែលមានការកំណត់រចនាសម្ព័ន្ធ និងអាថ៌កំបាំង។ ទាំងនេះអាចជា accessed ក្នុងវិធីជាច្រើន រួមទាំងកម្មវិធី Pulumi ផងដែរ។ បរិស្ថាន ESC ទាំងអស់រស់នៅក្នុងគណនី Pulumi Cloud របស់អ្នកដោយសុវត្ថិភាព ហើយអាចគ្រប់គ្រងបានពេញលេញតាមរយៈ Pulumi CLI ។ សម្រាប់មេរៀននេះ អ្នកនឹងរក្សាទុកតម្លៃដូចខាងក្រោម៖
  • Của bạn Cloudflare account ID
  • Một hợp lệ Cloudflare API token.
  • một domain. Ví dụ như example.com.
  • Your Cloudflare account ID.
  • A valid Cloudflare API token.
  • A domain. For instance, example.com.
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
# Define an ESC Environment name

E=cloudflare/my-dev-env


# Create a new Pulumi ESC Environment

pulumi config env init --env $E --yes
text
Creating environment cloudflare/my-dev-env for stack dev...
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
# Replace abc123 with your Cloudflare Account ID

pulumi env set $E --plaintext pulumiConfig.accountId abc123


# Replace API_TOKEN with your Cloudflare API Token

pulumi env set $E --secret  pulumiConfig.cloudflare:apiToken API_TOKEN


# Replace example.com with your registered domain, or leave as is

pulumi env set $E --plaintext pulumiConfig.domain example.com

F Cài đặt gói Cloudflare f. Install the Cloudflare package f. ដំឡើងកញ្ចប់ Cloudflare

Phần «F. Install Cloudflare package» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "f. Install the Cloudflare package" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «f. ដំឡើងកញ្ចប់ Cloudflare» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bạn cần cài đặt gói Cloudflare cho ngôn ngữ của bạn để xác định tài nguyên Cloudflare trong chương trình Pulumi của bạn.
You need to install the Cloudflare package for your language of choice in order to define Cloudflare resources in your Pulumi program.
អ្នកត្រូវដំឡើងកញ្ចប់ Cloudflare សម្រាប់ភាសាជម្រើសរបស់អ្នក ដើម្បីកំណត់ធនធាន Cloudflare នៅក្នុងកម្មវិធី Pulumi របស់អ្នក។
Cài đặt gói Cloudflare bằng cách chạy lệnh sau:
Install the Cloudflare package by running the following command:
ដំឡើងកញ្ចប់ Cloudflare ដោយដំណើរការពាក្យបញ្ជាខាងក្រោម៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
npm install @pulumi/cloudflare
text
added 1 package ...
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
npm install @pulumi/cloudflare
text
added 1 package ...
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
echo "pulumi_cloudflare>=5.38,<6.0.0" >> requirements.txt

source venv/bin/activate

pip install -r requirements.txt
text
...Collecting pulumi-cloudflare...
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
go get github.com/pulumi/pulumi-cloudflare/sdk/v3/go/cloudflare
text
go: downloading github.com/pulumi/pulumi-cloudflare ...
Dưới đây là hướng dẫn của Apache Maven. Đối với các quản lý dự án Java khác như Gradle, hãy xem Maven repository ↗ chính thức
Below are Apache Maven instructions. For other Java project managers such as Gradle, see the official Maven repository ↗
ខាងក្រោមនេះគឺជាការណែនាំរបស់ Apache Maven ។ សម្រាប់អ្នកគ្រប់គ្រងគម្រោង Java ផ្សេងទៀតដូចជា Gradle សូមមើល ↗ Maven re
  1. Mở tệp pom.xml của bạn.
  2. Thêm sự phụ thuộc Pulumi Cloudflare bên trong phần <dependencies>.
  1. Open your pom.xml file.
  2. Add the Pulumi Cloudflare dependency inside the <dependencies> section.
  1. បើកឯកសារ pom.xml របស់អ្នក។
  2. បន្ថែមភាពអាស្រ័យ Pulumi Cloudflare នៅខាងក្នុងផ្នែក <dependencies> ផ្នែក។
text
<dependency>

    <groupId>com.pulumi</groupId>

    <artifactId>cloudflare</artifactId>

    <version>5.38.0</version>

</dependency>
  1. chạy đua:
  1. Run:
  1. រត់៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
mvn clean install
text
...[INFO] BUILD SUCCESS...
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
dotnet add package Pulumi.Cloudflare
text
...

info : Adding PackageReference for package 'Pulumi.Cloudflare' into project

...
Không có phụ thuộc để tải về cho YAML. tàu phía trước.
There are no dependencies to download for YAML. Skip ahead.
មិនមានភាពអាស្រ័យដើម្បីទាញយកសម្រាប់ YAML ទេ។ Skip ខាងមុខ។
Với gói Cloudflare được cài đặt, bây giờ bạn có thể xác định bất kỳ supported Cloudflare resource ↗ nào trong chương trình Pulumi của bạn. Bạn sẽ xác định một Zone, và một DNS Record tiếp theo.
With the Cloudflare package installed, you can now define any supported Cloudflare resource ↗ in your Pulumi program. You'll define a Zone, and a DNS Record next.
Một tên miền, hoặc site, được gọi là Zone trong Cloudflare. Trong Pulumi, Zone resource ↗ đại diện cho một Cloudflare Zone.
A domain, or site, is known as a Zone in Cloudflare. In Pulumi, the Zone resource ↗ represents a Cloudflare Zone.
ដែន ឬគេហទំព័រត្រូវបានគេស្គាល់ថាជាតំបន់ក្នុង Cloudflare។ នៅក្នុង Pulumi ធនធានតំបន់ ↗ a._2
Thay thế nội dung của file entrypoint của bạn bằng những điều sau đây:
Replace the contents of your entrypoint file with the following:
ជំនួសមាតិកានៃឯកសារចំណុចចូលរបស់អ្នកដោយដូចខាងក្រោម៖
Filename: index.js
Filename: index.js
ឈ្មោះឯកសារ៖ index.js
JavaScript Đánh giá
JavaScript
JavaScript
text
"use strict";

const pulumi = require("@pulumi/pulumi");

const cloudflare = require("@pulumi/cloudflare");


const config = new pulumi.Config();

const accountId = config.require("accountId");

const domain = config.require("domain");


// Create a Cloudflare resource (Zone)

const zone = new cloudflare.Zone("my-zone", {

  zone: domain,

  accountId: accountId,

  plan: "free",

  jumpStart: true,

});


exports.zoneId = zone.id;

exports.nameservers = zone.nameServers;

exports.status = zone.status;
Filename: index.ts
Filename: index.ts
ឈ្មោះឯកសារ៖ index.ts
TypeScript Đánh giá
TypeScript
ប្រភេទScript
text
import * as pulumi from "@pulumi/pulumi";

import * as cloudflare from "@pulumi/cloudflare";


const config = new pulumi.Config();

const accountId = config.require("accountId");

const domain = config.require("domain");


// Create a Cloudflare resource (Zone)

const zone = new cloudflare.Zone("my-zone", {

  zone: domain,

  accountId: accountId,

  plan: "free",

  jumpStart: true,

});


export const zoneId = zone.id;

export const nameservers = zone.nameServers;

export const status = zone.status;
Filename: _<em>main</em>_.py
Filename: _<em>main</em>_.py
ឈ្មោះឯកសារ៖ _<em>main</em>_.py
Python
Python
ពស់ថ្លាន់
text
import pulumi

import pulumi_cloudflare as cloudflare


account_id = pulumi.Config().require("accountId")

domain = pulumi.Config().require("domain")


# Create a Cloudflare resource (Zone)

zone = cloudflare.Zone("my-zone",

    zone=domain,

    account_id=account_id,

    plan="free",

    jump_start=True)


pulumi.export("zoneId", zone.id)

pulumi.export('nameservers', zone.name_servers)

pulumi.export('status', zone.status)
Filename: main.go
Filename: main.go
ឈ្មោះឯកសារ៖ main.go
text
package main


import (

    "github.com/pulumi/pulumi/sdk/v3/go/pulumi"

    cloudflare "github.com/pulumi/pulumi-cloudflare/sdk/v3/go/cloudflare"

)


func main() {

    pulumi.Run(func(ctx *pulumi.Context) error {

        domain, _ := ctx.GetConfig("domain")


        // Create a Cloudflare resource (Zone)

        zone, err := cloudflare.NewZone(ctx, "my-zone", &cloudflare.ZoneArgs{

            Zone:      pulumi.String(domain),

            Plan:      pulumi.String("free"),

            JumpStart: pulumi.Bool(true),

        })

        if err != nil {

            return err

        }


        ctx.Export("zoneId", zone.ID())

        ctx.Export("nameservers", zone.NameServers)

        ctx.Export("status", zone.Status)

        return nil

    })

}
Filename: src/main/java/myproject/App.java
Filename: src/main/java/myproject/App.java
ឈ្មោះឯកសារ៖ src/main/java/myproject/App.java
text
package myproject;


import com.pulumi.Pulumi;

import com.pulumi.Context;

import com.pulumi.cloudflare.ZoneArgs;

import com.pulumi.cloudflare.Zone;


public class App {

    public static void main(String[] args) {

        Pulumi.run(ctx -> {

            var config = ctx.config();


            String accountId = config.require("accountId");

            String domain = config.require("domain");


            var zone = new Zone("my-zone", ZoneArgs.builder()

                .zone(domain)

                .accountId(accountId)

                .plan("free")

                .jumpStart(true)

                .build());


            ctx.export("zoneId", zone.id());

            ctx.export("nameservers", zone.nameServers());

            ctx.export("status", zone.status());

        });

    }

}
Filename: Program.cs
Filename: Program.cs
ឈ្មោះឯកសារ៖ Program.cs
text
using System.Threading.Tasks;

using System.Collections.Immutable;

using Pulumi;

using Pulumi.Cloudflare;


class Program

{

    static Task<int> Main() => Deployment.RunAsync<MyStack>();


    class MyStack : Stack

    {

        public MyStack()

        {

            var config = new Pulumi.Config();

            var accountId = config.Require("accountId");

            var domain = config.Require("domain");


            var zone = new Zone("my-zone", new ZoneArgs

            {

                ZoneName = domain,

                AccountId = accountId,

                Plan = "free",

                JumpStart = true

            });


            this.ZoneId = zone.Id;

            this.Nameservers = zone.NameServers;

            this.Status = zone.Status;

        }


        [Output]

        public Output<string> ZoneId { get; set; }

        public Output<ImmutableArray<string>> Nameservers { get; set; }

        public Output<string> Status { get; set; }

    }

}
Filename: Pulumi.yaml
Filename: Pulumi.yaml
ឈ្មោះឯកសារ៖ Pulumi.yaml
YAML
YAML
YAML
text
name: addsite-cloudflare

runtime: yaml

resources:

  myZone:

    type: cloudflare:Zone

    properties:

      zone: ${domain}

      accountId: ${accountId}

      plan: "free"

      jumpStart: true


outputs:

  zoneId: ${myZone.id}

  nameservers: ${exampleZone.nameServers}

  status: ${exampleZone.status}
Lưu ý rằng mã cũng xuất ra một số thuộc tính từ tài nguyên Zone, chẳng hạn như zoneId, nameservers và status, để chúng có thể dễ dàng truy cập trong các bước tiếp theo.
Notice that the code also outputs several properties from the Zone resource, such as the zoneId, nameservers, and status, so that they can easily be accessed in subsequent steps.
សូម​កត់​សម្គាល់​ថា​កូដ​នេះ​ក៏​បញ្ចេញ​លក្ខណៈ​សម្បត្តិ​ជា​ច្រើន​ពី​ធនធាន​តំបន់​ផង​ដែរ​ដូចជា zoneId nameservers និង status ដូច្នេះ​ពួកវា​អាច​ត្រូវ​បាន​យ៉ាង​ងាយ​ស្រួល __TERM32_0_quent steps.

B . Thêm một DNS Record b. Add a DNS Record ខ. បន្ថែម DNS កំណត់ត្រា

Phần «B. Add DNS Record» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "b. Add a DNS Record" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ខ. បន្ថែម DNS កំណត់ត្រា» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn sẽ thêm DNS Record resource ↗ để kiểm tra Zone được cấu hình trước đó.
You will now add a DNS Record resource ↗ to test previously configured Zone.
ឥឡូវនេះ អ្នកនឹងបន្ថែម DNS តំបន់ដែលបានកំណត់រចនាសម្ព័ន្ធ។
Thêm đoạn mã sau vào tệp entrypoint của bạn after the Zone resource definition:
Add the following code snippet to your entrypoint file after the Zone resource definition:
បន្ថែមកូដខាងក្រោម snippet ទៅឯកសារចំណុចចូលរបស់អ្នក after និយមន័យធនធានតំបន់៖
Filename: index.js
Filename: index.js
ឈ្មោះឯកសារ៖ index.js
JavaScript Đánh giá
JavaScript
JavaScript
text
const record = new cloudflare.Record("my-record", {

  zoneId: zone.id,

  name: domain,

  content: "192.0.2.1",

  type: "A",

  proxied: true,

});
Filename: index.ts
Filename: index.ts
ឈ្មោះឯកសារ៖ index.ts
TypeScript Đánh giá
TypeScript
ប្រភេទScript
text
const record = new cloudflare.Record("my-record", {

  zoneId: zone.id,

  name: domain,

  content: "192.0.2.1",

  type: "A",

  proxied: true,

});
Filename: _<em>main</em>_.py
Filename: _<em>main</em>_.py
ឈ្មោះឯកសារ៖ _<em>main</em>_.py
Python
Python
ពស់ថ្លាន់
text
record = cloudflare.Record("my-record",

    zone_id=zone.id,

    name=domain,

    content="192.0.2.1",

    type="A",

    proxied=True

)
Filename: main.go
Filename: main.go
ឈ្មោះឯកសារ៖ main.go
text
_, err = cloudflare.NewRecord(ctx, "my-record", &cloudflare.RecordArgs{

      ZoneId:  zone.ID(),

      Name:    pulumi.String(domain),

      Content:   pulumi.String("192.0.2.1"),

      Type:    pulumi.String("A"),

      Proxied: pulumi.Bool(true),

    })

    if err != nil {

      return err

    }
Filename: src/main/java/myproject/App.java
Filename: src/main/java/myproject/App.java
ឈ្មោះឯកសារ៖ src/main/java/myproject/App.java
text
// Add imports

import com.pulumi.cloudflare.Record;

import com.pulumi.cloudflare.RecordArgs;


// Below the Zone resource, add

new Record("my-record", RecordArgs.builder()

.zoneId(zone.id())

.name(domain)

.content("192.0.2.1")

.type("A")

.proxied(true)

.build());
Filename: Program.cs
Filename: Program.cs
ឈ្មោះឯកសារ៖ Program.cs
text
new Record("my-record", new RecordArgs

{

    ZoneId = zone.Id,

    Name = domain,

    Content = "192.0.2.1",

    Type = "A",

    Proxied = true

});
Filename: Pulumi.yaml
Filename: Pulumi.yaml
ឈ្មោះឯកសារ៖ Pulumi.yaml
YAML
YAML
YAML
text
myRecord:

  type: cloudflare:Record

  properties:

    zoneId: ${myZone.id}

    name: ${domain}

    content: 192.0.2.1

    type: A

    proxied: true

3 Cái triển khai các thay đổi của bạn 3. Deploy your changes 3. ដាក់ពង្រាយការផ្លាស់ប្តូររបស់អ្នក។

Phần «Triển khai your changes» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "3. Deploy your changes" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «3. ដាក់ពង្រាយការផ្លាស់ប្តូររបស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn đã xác định tài nguyên của mình, bạn có thể triển khai các thay đổi bằng cách sử dụng Pulumi CLI để chúng được phản ánh trong tài khoản Cloudflare của bạn.
Now that you have defined your resources, you can deploy the changes using the Pulumi CLI so that they are reflected in your Cloudflare account.
ឥឡូវនេះអ្នកបានកំណត់ធនធានរបស់អ្នក អ្នកអាចដាក់ពង្រាយការផ្លាស់ប្តូរដោយប្រើ Pulumi CLI ដូច្នេះពួកវាត្រូវបានឆ្លុះបញ្ចាំងនៅក្នុងគណនី Cloudflare របស់អ្នក។
Để triển khai các thay đổi, chạy:
To deploy the changes, run:
ដើម្បីដាក់ឱ្យដំណើរការការផ្លាស់ប្តូរ សូមដំណើរការ៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi up --yes
text
wait for the dev stack to become ready

Bốn Cài đặt nhà cung cấp DNS 4. Configure your DNS provider 4. កំណត់រចនាសម្ព័ន្ធអ្នកផ្តល់សេវា DNS របស់អ្នក។

Phần «Cấu hình your DNS provider» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "4. Configure your DNS provider" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «4. កំណត់រចនាសម្ព័ន្ធអ្នកផ្តល់សេវា DNS របស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Quá trình này làm cho Cloudflare nhà cung cấp DNS có thẩm quyền của bạn, cho phép truy vấn DNS và lưu lượng truy cập web của bạn được phục vụ từ và được bảo vệ bởi mạng Cloudflare.
This process makes Cloudflare your authoritative DNS provider, allowing your DNS queries and web traffic to be served from and protected by the Cloudflare network.
ដំណើរការនេះធ្វើឱ្យ Cloudflare អ្នកផ្តល់សេវា DNS អនុញ្ញាតរបស់អ្នក ដែលអនុញ្ញាតឱ្យសំណួរ DNS និងចរាចរណ៍គេហទំព័ររបស់អ្នកត្រូវបានបម្រើ និងការពារដោយបណ្តាញ Cloudflare ។
Nếu trang web của bạn là example.com, hãy bỏ qua Test your site.
If your site is example.com, skip ahead to Test your site.
ប្រសិនបើគេហទំព័ររបស់អ្នកគឺ example.com, skip ខាងមុខដើម្បី សាកល្បងគេហទំព័ររបស់អ្នក។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

A ơi Nhận tên server của bạn a. Obtain your nameservers ក. ទទួលបាន nameservers របស់អ្នក។

Phần «. Obtain your nameservers» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "a. Obtain your nameservers" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ក. ទទួលបាន nameservers របស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một khi bạn đã thêm tên miền vào Cloudflare, tên miền đó sẽ nhận được hai máy chủ tên có thẩm quyền được gán.
Once you have added a domain to Cloudflare, that domain will receive two assigned authoritative nameservers.
នៅពេលដែលអ្នកបានបន្ថែម domain ទៅ Cloudflare នោះ domain នោះនឹងទទួលបាន nameservers ពីរដែលអនុញ្ញាត។
Để lấy nameservers được gán, chạy:
To retrieve the assigned nameservers, run:
ដើម្បីទាញយក nameservers ដែលបានកំណត់ សូមដំណើរការ៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi stack output

B . Cập nhật Registry của bạn b. Update your registrar ខ. ធ្វើបច្ចុប្បន្នភាពអត្រានុកូលដ្ឋានរបស់អ្នក។

Phần «b. Update your registrar» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "b. Update your registrar" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ខ. ធ្វើបច្ចុប្បន្នភាពអត្រានុកូលដ្ឋានរបស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cập nhật các máy chủ tên tại nhà đăng ký của bạn để kích hoạt dịch vụ Cloudflare cho tên miền của bạn. Các hướng dẫn là cụ thể cho người đăng ký. Bạn có thể tìm thấy hướng dẫn dưới this consolidated list of common registrars.
Update the nameservers at your registrar to activate Cloudflare services for your domain. The instructions are registrar-specific. You may be able to find guidance under this consolidated list of common registrars.
ធ្វើបច្ចុប្បន្នភាព nameservers នៅឯអត្រានុកូលដ្ឋានរបស់អ្នក ដើម្បីដំណើរការសេវាកម្ម Cloudflare សម្រាប់ដែនរបស់អ្នក។ ការណែនាំគឺជាក់លាក់សម្រាប់អត្រានុកូលដ្ឋាន។ អ្នកប្រហែលជាអាចស្វែងរកការណែនាំនៅក្រោម អ្នកចុះឈ្មោះ។
Warning
Warning
ការព្រមាន
Người đăng ký mất đến 24 giờ để xử lý các thay đổi máy chủ tên.
Registrars take up to 24 hours to process nameserver changes.
អ្នកចុះឈ្មោះត្រូវចំណាយពេលរហូតដល់ 24 ម៉ោងដើម្បីដំណើរការការផ្លាស់ប្តូរ nameserver ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

C . Kiểm tra trạng thái domain của bạn c. Check your domain status គ. ពិនិត្យស្ថានភាពដែនរបស់អ្នក។

Phần «c. Check your domain status» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "c. Check your domain status" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «គ. ពិនិត្យស្ថានភាពដែនរបស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Sau khi đăng ký thành công, tên miền của bạn status sẽ thay đổi thành active.
Once successfully registered, your domain status will change to active.
នៅពេលចុះឈ្មោះដោយជោគជ័យ ដែនរបស់អ្នក status នឹងប្តូរទៅជា active។
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi stack output

5 Kiểm tra website của bạn 5. Test your site 5. សាកល្បងគេហទំព័ររបស់អ្នក។

Phần «Test your site» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "5. Test your site" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «5. សាកល្បងគេហទំព័ររបស់អ្នក។» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bạn sẽ chạy hai lệnh nslookup chống lại các máy chủ tên được gán Cloudflare.
You will run two nslookup commands against the Cloudflare-assigned nameservers.
អ្នកនឹងដំណើរការពាក្យបញ្ជា nslookup ពីរប្រឆាំងនឹង nameservers Cloudflare-assigned។
Để kiểm tra trang web của bạn, chạy:
To test your site, run:
ដើម្បីសាកល្បងគេហទំព័ររបស់អ្នក សូមដំណើរការ៖
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
DOMAIN=$(pulumi config get domain)

NS1=$(pulumi stack output nameservers | jq '.[0]' -r)

NS2=$(pulumi stack output nameservers | jq '.[1]' -r)

nslookup $DOMAIN $NS1

nslookup $DOMAIN $NS2
Đối với .NET, sử dụng Nameservers làm đầu ra.
For .NET, use Nameservers as the Output.
សម្រាប់ .NET សូមប្រើ Nameservers ជាលទ្ធផល។
Xác nhận câu trả lời của bạn trả về địa chỉ IP cho trang web của bạn.
Confirm your response returns the IP address(es) for your site.
បញ្ជាក់ការឆ្លើយតបរបស់អ្នកនឹងត្រឡប់អាសយដ្ឋាន IP (es) សម្រាប់គេហទំព័ររបស់អ្នក។
Bạn sẽ không nhận được câu trả lời hợp lệ nếu bạn sử dụng example.com làm trang web của bạn.
You will not receive a valid response if you use example.com as your site.
អ្នកនឹងមិនទទួលបានការឆ្លើយតបត្រឹមត្រូវទេ ប្រសិនបើអ្នកប្រើ example.com ជាគេហទំព័ររបស់អ្នក។

Sáu Làm sạch 6. Clean up 6. សម្អាត

Phần «Dọn dẹp» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "6. Clean up" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «6. សម្អាត» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trong bước cuối cùng này, bạn sẽ loại bỏ các tài nguyên và stack được sử dụng trong suốt hướng dẫn.
In this last step, you will remove the resources and stack used throughout the tutorial.
នៅក្នុងជំហានចុងក្រោយនេះ អ្នកនឹងលុបធនធាន និងជង់ដែលបានប្រើពេញការបង្រៀន។

A ơi Xóa các nguồn lực a. Delete the resources ក. លុបធនធាន

Phần «. Delete resources» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "a. Delete the resources" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ក. លុបធនធាន» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi destroy --yes

B . Loại bỏ Stack b. Remove the stack ខ. យកជង់ចេញ

Phần «B. Remove stack» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "b. Remove the stack" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ខ. យកជង់ចេញ» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cửa sổ Terminal
Terminal window
បង្អួចស្ថានីយ
text
pulumi stack rm dev

Bước tiếp theo Next steps ជំហានបន្ទាប់

Phần «Bước tiếp theo» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Next steps" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ជំហានបន្ទាប់» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bạn đã định nghĩa dần Cloudflare các tài nguyên cần thiết để thêm một trang web vào Cloudflare. Bạn tuyên bố tài nguyên trong ngôn ngữ lập trình của bạn lựa chọn và để Pulumi xử lý phần còn lại.
You have incrementally defined Cloudflare resources needed to add a site to Cloudflare. You declare the resources in your programming language of choice and let Pulumi handle the rest.
អ្នកបានកំណត់បន្ថែមនូវធនធាន Cloudflare ដែលត្រូវការដើម្បីបន្ថែមគេហទំព័រទៅ Cloudflare ។ អ្នកប្រកាសធនធានជាភាសាសរសេរកម្មវិធីរបស់អ្នកជាជម្រើស ហើយអនុញ្ញាតឱ្យ Pulumi ដោះស្រាយអ្វីដែលនៅសល់។
Để triển khai một ứng dụng không máy chủ với Pulumi, hãy làm theo Deploy a Worker tutorial.
To deploy a serverless app with Pulumi, follow the Deploy a Worker tutorial.
ដើម្បីដាក់ឱ្យប្រើប្រាស់កម្មវិធីគ្មានម៉ាស៊ីនមេជាមួយ Pulumi សូមអនុវត្តតាម ដាក់ពង្រាយការបង្រៀនកម្មករ។
json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/pulumi/","name":"Pulumi"}},{"@type":"ListItem","position":3,"item":{"@id":"/pulumi/tutorial/","name":"Tutorials"}},{"@type":"ListItem","position":4,"item":{"@id":"/pulumi/tutorial/add-site/","name":"Add a site"}}]}

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs). មើលមគ្គុទ្ទេសក៍ពេញលើ developers.cloudflare.com (រូបភាព, tab កំណត់)។

Tài liệu gốc ↗ Official docs ↗ ឯកសារផ្លូវការ ↗