Applying the Service Updates Using the AWS CLI - Amazon ElastiCache
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

如果我们为英文版本指南提供翻译,那么如果存在任何冲突,将以英文版本指南为准。在提供翻译时使用机器翻译。

Applying the Service Updates Using the AWS CLI

在收到服务更新可用的通知后,您可以使用 AWS CLI 检测和应用这些更新:

  • To retrieve a description of the service updates that are available, run the following command:

    aws elasticache describe-service-updates --service-update-status available

    For more information, see DescribeServiceUpdates.

  • To view update actions that have a not-applied or stopped status, run the following command:

    aws elasticache describe-update-actions --service-update-name sample-service-update --update-action-status not-applied stopped

    For more information, see DescribeUpdateActions.

  • To apply a service update on a list of replication groups, run the following command:

    aws elasticache batch-apply-update-action --service-update-name sample-service-update --cache-cluster-ids my-cachecluster-1 my-cache-cluster-2

    For more information, see BatchApplyUpdateAction.