gpt4 book ai didi

amazon-web-services - 尽管云形成在手动干预后不会回退,但 dynamodb 中的自动缩放

转载 作者:行者123 更新时间:2023-12-03 07:36:32 26 4
gpt4 key购买 nike

我在通过 cloudformation 部署的 dynamoDB 表之一中配置了自动缩放。一旦我通过控制台禁用了自动缩放。现在,当我再次通过 cloudformation 部署自动缩放时,它被禁用,尽管它应该被启用。我已经尝试过更新策略,但似乎没有帮助。

UpdatePolicy:
AutoScalingReplacingUpdate:
WillReplace: Boolean

cloudformation 是否不够智能,无法覆盖手动更改?有没有具体的方法来处理这个问题。

我注意到漂移状态没有捕获手动更改。

最佳答案

UpdatePolicy属性不支持AWS::DynamoDB::Table资源类型。

根据docs :

Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup, AWS::Lambda::Alias, or AWS::ElastiCache::ReplicationGroup resources.

请注意,为了让偏差检测能够发现更改,您需要确保 Cloudformation 资源中的所有属性均已显式设置(包括默认值),以便正确检测偏差。

参见docs

CloudFormation only determines drift for property values that are explicitly set, either through the stack template or by specifying template parameters. This does not include default values for resource properties. To have CloudFormation track a resource property for purposes of determining drift, explicitly set the property value, even if you are setting it to the default value.

希望这有帮助!

关于amazon-web-services - 尽管云形成在手动干预后不会回退,但 dynamodb 中的自动缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54779579/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com