

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 배포 전략 작업
<a name="appconfig-creating-deployment-strategy"></a>

배포 전략을 사용하면 엔터티 기반 배포를 활용하여 세션 기반 또는 자체 대상 차원에 따라 몇 분 또는 몇 시간에 걸쳐 모든 대상 또는 특정 세그먼트에 대한 변경 사항을 천천히 릴리스할 수 있습니다.

**참고**  
AWS AppConfig 에이전트(버전 2.0.136060 이상)는 점진적 롤아웃 중에 특정 세그먼트 또는 개별 사용자에게 기능 플래그 또는 자유 형식 구성 데이터 배포를 지원합니다. 개체 기반 점진적 배포를 사용하면 사용자 또는 세그먼트가 구성 버전을 받으면 요청을 처리하는 컴퓨팅 리소스에 관계없이 배포 기간 동안 동일한 버전을 계속 받을 수 있습니다. 자세한 내용은 [사용자 또는 개체 기반 점진적 배포에 AWS AppConfig 에이전트 사용](appconfig-agent-how-to-use.md#appconfig-entity-based-gradual-deployments) 단원을 참조하십시오.

 AWS AppConfig 배포 전략은 구성 배포의 다음과 같은 중요한 측면을 정의합니다.


****  

| 설정 | 설명 | 
| --- | --- | 
| 경과 시간 | 배포 진행 중 | 
| --- | --- | 
|  배포 유형  | 배포 유형은 구성이 배포 또는 *롤아웃*되는 방법을 정의합니다.는 **선형** 및 **지수** 배포 유형을 AWS AppConfig 지원합니다. [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ko_kr/appconfig/latest/userguide/appconfig-creating-deployment-strategy.html)  | 
|  단계 비율(성장 계수)  |  이 설정은 배포의 각 단계에서 대상으로 지정할 호출자의 백분율을 지정합니다.  SDK 및 [AWS AppConfig API 참조](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_CreateDeploymentStrategy.html)에서 `step percentage`를 `growth factor`라고 합니다.   | 
|  배포 시간  |  이 설정은가 호스트에 AWS AppConfig 배포되는 시간을 지정합니다. 이는 제한 시간 값이 아닙니다. 배포가 간격에 따라 처리되는 동안의 시간입니다. | 
|  베이크 소요 시간  |  이 설정은 배포 완료를 고려하기 전에 구성이 대상의 100%에 배포된 후가 Amazon CloudWatch 경보를 AWS AppConfig 모니터링하는 시간을 지정합니다. 이 시간 동안 경보가 트리거되면 AWS AppConfig 이 배포를 롤백합니다. CloudWatch 경보를 기반으로 롤백 AWS AppConfig 하려면에 대한 권한을 구성해야 합니다. 자세한 내용은 [자동 롤백에 대한 권한 구성](setting-up-appconfig.md#getting-started-with-appconfig-cloudwatch-alarms-permissions) 단원을 참조하십시오.  | 
|  0시간  |  0%  | 
|  2시간  |  20%  | 
|  4시간  |  40%  | 
|  6시간  |  60%  | 
|  8시간  |  80%  | 
|  10시간  |  100%  | 

에 포함된 사전 정의된 전략을 선택하거나 직접 AWS AppConfig 생성할 수 있습니다.

**참고**  
AWS AppConfig 에이전트(버전 2.0.136060 이상)는 점진적 롤아웃 중에 특정 세그먼트 또는 개별 사용자에게 기능 플래그 또는 자유 형식 구성 데이터 배포를 지원합니다. 개체 기반 점진적 배포를 사용하면 사용자 또는 세그먼트가 구성 버전을 받으면 요청을 처리하는 컴퓨팅 리소스에 관계없이 배포 기간 동안 동일한 버전을 계속 받을 수 있습니다. 자세한 내용은 [사용자 또는 개체 기반 점진적 배포에 AWS AppConfig 에이전트 사용](appconfig-agent-how-to-use.md#appconfig-entity-based-gradual-deployments) 단원을 참조하십시오.

**Topics**
+ [

# 미리 정의된 배포 전략 사용
](appconfig-creating-deployment-strategy-predefined.md)
+ [

# 배치 전략 생성
](appconfig-creating-deployment-strategy-create.md)

# 미리 정의된 배포 전략 사용
<a name="appconfig-creating-deployment-strategy-predefined"></a>

AWS AppConfig 에는 구성을 빠르게 배포하는 데 도움이 되는 사전 정의된 배포 전략이 포함되어 있습니다. 고유한 전략을 생성하는 대신 구성을 배포할 때 다음 중 하나를 선택할 수 있습니다.


****  

| 배포 전략 | 설명 | 
| --- | --- | 
|  AppConfig.Linear20PercentEvery6Minutes  | **AWS 권장** 사항: 이 전략은 30분 배포를 위해 6분마다 모든 대상의 20%에 구성을 배포합니다. 시스템에서 30분 동안 Amazon CloudWatch 경보를 모니터링합니다. 이 시간에 경보가 수신되지 않으면 배포가 완료된 것입니다. 이 시간 동안 경보가 트리거되면가 배포를 AWS AppConfig 롤백합니다.프로덕션 배포에는이 전략을 사용하는 것이 좋습니다. AWS 모범 사례에 부합하고 긴 기간과 베이크 시간으로 인해 배포 안전성에 대한 추가 강조가 포함되기 때문입니다.  | 
|  AppConfig.Canary10Percent20Minutes  | **AWS 권장** 사항: 이 전략은 20분 동안 10% 성장 계수를 사용하여 배포를 기하급수적으로 처리합니다. 시스템에서 10분 동안 CloudWatch 경보를 모니터링합니다. 이 시간에 경보가 수신되지 않으면 배포가 완료된 것입니다. 이 시간 동안 경보가 트리거되면가 배포를 AWS AppConfig 롤백합니다.이 전략은 구성 배포의 AWS 모범 사례에 부합하므로 프로덕션 배포에 사용하는 것이 좋습니다.  | 
|  AppConfig.AllAtOnce  | **신속**: 이 전략은 구성을 모든 대상에 즉시 배포합니다. 시스템에서 10분 동안 CloudWatch 경보를 모니터링합니다. 이 시간에 경보가 수신되지 않으면 배포가 완료된 것입니다. 이 시간 동안 경보가 트리거되면 AWS AppConfig 이 배포를 롤백합니다.  | 
|  AppConfig.Linear50PercentEvery30Seconds  | **테스트/데모**: 이 전략은 1분 배포를 위해 30초마다 모든 대상의 절반에 구성을 배포합니다. 시스템에서 1분 동안 Amazon CloudWatch 경보를 모니터링합니다. 이 시간에 경보가 수신되지 않으면 배포가 완료된 것입니다. 이 시간 동안 경보가 트리거되면가 배포를 AWS AppConfig 롤백합니다.이 전략은 지속 시간과 베이크 소요 시간이 짧기 때문에 테스트 또는 데모 용도로만 사용하는 것을 권장합니다.  | 

# 배치 전략 생성
<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. **태그** 섹션에 키와 선택적 값을 입력합니다. 하나의 리소스에 대해 최대 50개의 태그를 지정할 수 있습니다.

1. **배포 전략 생성**을 선택합니다.

**중요**  
에 대한 구성 프로파일을 생성한 경우를 *배포 공급자* AWS AppConfig 로 지정하는 파이프라인을 CodePipeline에서 생성 AWS 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 AppConfig 배포 전략을 AWS Tools for PowerShell 생성하는 방법을 설명합니다.

**단계별 배포 전략 생성**

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

------