Creación de una estrategia de implementación - AWS AppConfig

Creación de una estrategia de implementación

Si no desea utilizar una de las estrategias de implementación predefinidas, puede crear una propia. Puede crear un máximo de 20 estrategias de implementación. Al implementar una configuración, puede elegir la estrategia de implementación que funcione mejor para la aplicación y el entorno.

Creación de una estrategia de implementación de AWS AppConfig (consola)

Utilice el siguiente procedimiento para crear una estrategia de implementación de AWS AppConfig mediante la consola de AWS Systems Manager.

Para crear una estrategia de implementación
  1. Abra la consola de AWS Systems Manager en https://console.aws.amazon.com/systems-manager/appconfig/.

  2. En el panel de navegación, elija Estrategias de implementación y, a continuación, Crear estrategia de implementación.

  3. En Name (Nombre), escriba un nombre para la estrategia de implementación.

  4. En Description (Descripción), introduzca información sobre la estrategia de implementación.

  5. En Deployment type (Tipo de implementación), elija un tipo.

  6. En Step percentage (Porcentaje de pasos), elija el porcentaje de intermediarios objetivo durante cada paso de la implementación.

  7. En Deployment time (Tiempo de implementación), especifique la duración total de la implementación en minutos u horas.

  8. En el Tiempo de incorporación, introduzca el tiempo total, en minutos u horas, durante el que se monitorizarán las alarmas de Amazon CloudWatch antes de continuar con el siguiente paso de una implementación o antes de considerar que la implementación se ha completado.

  9. En la sección Tags (Etiquetas) introduzca una clave y un valor opcional. Puede especificar un máximo de 50 etiquetas para un recurso.

  10. Elija Create deployment strategy (Crear estrategia de implementación).

importante

Si ha creado un perfil de configuración para AWS CodePipeline, debe crear una canalización en CodePipeline que especifique AWS AppConfig como proveedor de implementación. No tiene que realizar Implementar una configuración. Sin embargo, debe configurar un cliente para recibir las actualizaciones de la configuración de la aplicación, tal y como se describe en Recuperación de los datos de configuración sin el agente de AWS AppConfig. Para obtener información sobre cómo crear una canalización que especifique AWS AppConfig como proveedor de implementación, consulte Tutorial: Creación de una canalización que utiliza AWS AppConfig como proveedor de implementación en la Guía del usuario de AWS CodePipeline.

Continúe en Implementar una configuración.

Creación de una estrategia de implementación de AWS AppConfig (línea de comandos)

En el siguiente procedimiento se describe cómo utilizar la AWS CLI (en Linux o Windows) o Herramientas de AWS para PowerShell para crear una estrategia de implementación de AWS AppConfig.

Crear una estrategia de implementación paso a paso
  1. Abra la AWS CLI.

  2. Ejecute el siguiente comando para crear una estrategia de implementación.

    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

    El sistema devuelve información similar a la siguiente.

    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