

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Buat strategi deployment
<a name="appconfig-creating-deployment-strategy-create"></a>

Jika Anda tidak ingin menggunakan salah satu strategi penerapan yang telah ditentukan sebelumnya, Anda dapat membuatnya sendiri. Anda dapat membuat maksimal 20 strategi penyebaran. Saat menerapkan konfigurasi, Anda dapat memilih strategi penerapan yang paling sesuai untuk aplikasi dan lingkungan.

## Membuat strategi AWS AppConfig penerapan (konsol)
<a name="appconfig-creating-deployment-strategy-create-console"></a>

Gunakan prosedur berikut untuk membuat strategi AWS AppConfig penyebaran dengan menggunakan AWS Systems Manager konsol.

**Untuk membuat strategi penyebaran**

1. Buka AWS Systems Manager konsol di [https://console.aws.amazon.com/systems-manager/appconfig/](https://console.aws.amazon.com/systems-manager/appconfig/).

1. Di panel navigasi, pilih **Strategi penyebaran, lalu pilih Buat strategi** **penerapan**.

1. Untuk **Nama**, masukkan nama untuk strategi penyebaran.

1. Untuk **Deskripsi**, masukkan informasi tentang strategi penyebaran.

1. Untuk **jenis Deployment**, pilih tipe.

1. Untuk **persentase Langkah**, pilih persentase penelepon yang akan ditargetkan selama setiap langkah penerapan. 

1. Untuk **waktu Deployment**, masukkan total durasi penerapan dalam hitungan menit atau jam. 

1. Untuk **waktu Bake**, masukkan total waktu, dalam menit atau jam, untuk memantau CloudWatch alarm Amazon sebelum melanjutkan ke langkah penerapan berikutnya atau sebelum mempertimbangkan penerapan selesai. 

1. Di bagian **Tag**, masukkan kunci dan nilai opsional. Anda dapat menentukan maksimum 50 tag untuk sumber daya. 

1. Pilih **Buat strategi penerapan**.

**penting**  
Jika Anda membuat profil konfigurasi untuk AWS CodePipeline, maka Anda harus membuat pipeline CodePipeline yang menentukan AWS AppConfig sebagai penyedia *penerapan*. Anda tidak perlu tampil[Men-deploy konfigurasi](appconfig-deploying.md). Namun, Anda harus mengonfigurasi klien untuk menerima pembaruan konfigurasi aplikasi seperti yang dijelaskan dalam[Mengambil data konfigurasi tanpa Agen AWS AppConfig](about-data-plane.md). *Untuk informasi tentang membuat pipeline yang ditetapkan AWS AppConfig sebagai penyedia penerapan, lihat [Tutorial: Membuat Pipeline yang Digunakan AWS AppConfig sebagai Penyedia Deployment di Panduan](https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-AppConfig.html) Pengguna.AWS CodePipeline * 

Lanjut ke [Men-deploy konfigurasi](appconfig-deploying.md).

## Membuat strategi AWS AppConfig penyebaran (baris perintah)
<a name="appconfig-creating-deployment-strategy-create-commandline"></a>

Prosedur berikut menjelaskan cara menggunakan AWS CLI (di Linux atau Windows) atau Alat AWS untuk PowerShell untuk membuat strategi AWS AppConfig penyebaran.

**Untuk membuat strategi penyebaran langkah demi langkah**

1. Buka AWS CLI.

1. Jalankan perintah berikut untuk membuat strategi penyebaran. 

------
#### [ Linux ]

   ```
   aws appconfig create-deployment-strategy \
     --name A_name_for_the_deployment_strategy \
     --description A_description_of_the_deployment_strategy \
     --deployment-duration-in-minutes Total_amount_of_time_for_a_deployment_to_last \
     --final-bake-time-in-minutes Amount_of_time_AWS AppConfig_monitors_for_alarms_before_considering_the_deployment_to_be_complete \
     --growth-factor The_percentage_of_targets_to_receive_a_deployed_configuration_during_each_interval \
     --growth-type The_linear_or_exponential_algorithm_used_to_define_how_percentage_grows_over_time \
     --replicate-to To_save_the_deployment_strategy_to_a_Systems_Manager_(SSM)_document \
     --tags User_defined_key_value_pair_metadata_of_the_deployment_strategy
   ```

------
#### [ Windows ]

   ```
   aws appconfig create-deployment-strategy ^
     --name A_name_for_the_deployment_strategy ^
     --description A_description_of_the_deployment_strategy ^
     --deployment-duration-in-minutes Total_amount_of_time_for_a_deployment_to_last ^
     --final-bake-time-in-minutes Amount_of_time_AWS AppConfig_monitors_for_alarms_before_considering_the_deployment_to_be_complete ^
     --growth-factor The_percentage_of_targets_to_receive_a_deployed_configuration_during_each_interval ^
     --growth-type The_linear_or_exponential_algorithm_used_to_define_how_percentage_grows_over_time ^
     --name A_name_for_the_deployment_strategy ^
     --replicate-to To_save_the_deployment_strategy_to_a_Systems_Manager_(SSM)_document ^
     --tags User_defined_key_value_pair_metadata_of_the_deployment_strategy
   ```

------
#### [ PowerShell ]

   ```
   New-APPCDeploymentStrategy ` 
     --Name A_name_for_the_deployment_strategy ` 
     --Description A_description_of_the_deployment_strategy `
     --DeploymentDurationInMinutes Total_amount_of_time_for_a_deployment_to_last `
     --FinalBakeTimeInMinutes Amount_of_time_AWS AppConfig_monitors_for_alarms_before_considering_the_deployment_to_be_complete `
     --GrowthFactor The_percentage_of_targets_to_receive_a_deployed_configuration_during_each_interval `
     --GrowthType The_linear_or_exponential_algorithm_used_to_define_how_percentage_grows_over_time `
     --ReplicateTo To_save_the_deployment_strategy_to_a_Systems_Manager_(SSM)_document `
     --Tag Hashtable_type_User_defined_key_value_pair_metadata_of_the_deployment_strategy
   ```

------

   Sistem mengembalikan informasi seperti berikut ini.

------
#### [ Linux ]

   ```
   {
      "Id": "Id of the deployment strategy",
      "Name": "Name of the deployment strategy",
      "Description": "Description of the deployment strategy",
      "DeploymentDurationInMinutes": "Total amount of time the deployment lasted",
      "GrowthType": "The linear or exponential algorithm used to define how percentage grew over time",
      "GrowthFactor": "The percentage of targets that received a deployed configuration during each interval",  
      "FinalBakeTimeInMinutes": "The amount of time AWS AppConfig monitored for alarms before considering the deployment to be complete",
      "ReplicateTo": "The Systems Manager (SSM) document where the deployment strategy is saved"
   }
   ```

------
#### [ Windows ]

   ```
   {
      "Id": "Id of the deployment strategy",
      "Name": "Name of the deployment strategy",
      "Description": "Description of the deployment strategy",
      "DeploymentDurationInMinutes": "Total amount of time the deployment lasted",
      "GrowthType": "The linear or exponential algorithm used to define how percentage grew over time",
      "GrowthFactor": "The percentage of targets that received a deployed configuration during each interval",  
      "FinalBakeTimeInMinutes": "The amount of time AWS AppConfig monitored for alarms before considering the deployment to be complete",
      "ReplicateTo": "The Systems Manager (SSM) document where the deployment strategy is saved"
   }
   ```

------
#### [ PowerShell ]

   ```
   ContentLength               : Runtime of the command
   DeploymentDurationInMinutes : Total amount of time the deployment lasted
   Description                 : Description of the deployment strategy
   FinalBakeTimeInMinutes      : The amount of time AWS AppConfig monitored for alarms before considering the deployment to be complete
   GrowthFactor                : The percentage of targets that received a deployed configuration during each interval
   GrowthType                  : The linear or exponential algorithm used to define how percentage grew over time
   HttpStatusCode              : HTTP Status of the runtime
   Id                          : The deployment strategy ID
   Name                        : Name of the deployment strategy
   ReplicateTo                 : The Systems Manager (SSM) document where the deployment strategy is saved
   ResponseMetadata            : Runtime Metadata
   ```

------