

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# デプロイ戦略の作成
<a name="appconfig-creating-deployment-strategy-create"></a>

定義済みのデプロイ戦略のいずれかを使用しない場合は、独自のデプロイ戦略を作成できます。最大 20 のデプロイ戦略を作成できます。設定をデプロイするときに、アプリケーションおよび環境に最適なデプロイ戦略を選択できます。

## AWS AppConfig デプロイ戦略の作成 (コンソール)
<a name="appconfig-creating-deployment-strategy-create-console"></a>

 AWS Systems Manager コンソールを使用して AWS AppConfig デプロイ戦略を作成するには、次の手順に従います。

**デプロイ戦略を作成するには**

1. [https://console.aws.amazon.com/systems-manager/appconfig/](https://console.aws.amazon.com/systems-manager/appconfig/) で AWS Systems Manager コンソールを開きます。

1. ナビゲーションペインで、**[デプロイ戦略]** タブを選択し、**[デプロイ戦略を作成]** を選択します。

1. **名前** に、デプロイ戦略の名前を入力します。

1. **説明** に、デプロイ戦略に関する情報を入力します。

1. **デプロイタイプ** で、タイプを選択します。

1. **ステップパーセンテージ** で、デプロイの各ステップでターゲットとする発信者の割合を選択します。

1. **デプロイ時間** に、デプロイの合計期間を分または時間単位で入力します。

1. **ベイク時間** には、デプロイの次のステップに進む前、またはデプロイを完了とみなす前に Amazon CloudWatch アラームをモニタリングする合計時間を分または時間単位で入力します。

1. **タグ** セクションで、キーとオプションの値を入力します。1 つのリソースに対して最大 50 個のタグを指定できます。

1. **デプロイ戦略の作成** を選択します。

**重要**  
の設定プロファイルを作成した場合は AWS CodePipeline、*デプロイプロバイダー* AWS AppConfig として を指定するパイプラインを CodePipeline で作成する必要があります。[構成のデプロイ](appconfig-deploying.md) を実行する必要はありません。ただし、「[AWS AppConfig エージェントを使用せずに設定データを取得する](about-data-plane.md)」で説明されているように、アプリケーション設定の更新を受け取るようにクライアントを設定する必要があります。デプロイプロバイダー AWS AppConfig として を指定するパイプラインの作成については、 *AWS CodePipeline ユーザーガイド*の[「チュートリアル: デプロイプロバイダー AWS AppConfig として を使用するパイプラインを作成する](https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-AppConfig.html)」を参照してください。

[構成のデプロイ](appconfig-deploying.md) に進みます。

## AWS AppConfig デプロイ戦略の作成 (コマンドライン)
<a name="appconfig-creating-deployment-strategy-create-commandline"></a>

次の手順では、 AWS CLI (Linux または Windows の場合) または AWS Tools for PowerShell を使用して AWS AppConfig デプロイ戦略を作成する方法について説明します。

**デプロイ戦略をステップバイステップで作成するには**

1. を開きます AWS CLI。

1. 以下のコマンドを実行して、デプロイ戦略を作成します。

------
#### [ 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}}
   ```

------

   システムが以下のような情報をレスポンスします。

------
#### [ 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
   ```

------