英文:
Pulumi: convert Aurora DB cluster from serverless to provisioned
问题
我有一个 AWS Aurora RDS 集群,正在从无服务器版本 1 升级到无服务器版本 2。
AWS 文档[1] 建议,在使用 AWS CLI 进行此过程时,第一步是使用 modify-db-cluster
中的 --engine-mode
和 --allow-engine-mode-change
参数。
我已确认在 AWS CLI 中可以正常工作。
然而,在 Pulumi 中,如果我将我的 aws.rds.Cluster
的 engineMode
值从 "serverless" 更改为 "provisioned" 并尝试执行 pulumi up
,该过程会失败(显示 "DB Cluster already exists"),因为它试图替换该集群。在 Pulumi 文档[2] 中似乎没有类似于 allow-engine-mode-change
参数的 aws.rds.Cluster
定义。
我正在使用 Pulumi 版本 3.70.0。
请问有人能建议我在哪里出错吗?提前感谢任何帮助。
- https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.modifying.html#aurora-serverless.modifying.convert
- https://www.pulumi.com/registry/packages/aws/api-docs/rds/cluster/
英文:
I have an AWS Aurora RDS cluster which I am upgrading from serverless v1 to serverless v2.
The AWS documentation[1] suggests that the first step in this process via the AWS CLI is to use the --engine-mode
and --allow-engine-mode-change
parameters in modify-db-cluster
.
I have confirmed that this works via the AWS CLI.
However, in Pulumi if I change my aws.rds.Cluster
's engineMode value from "serverless" to "provisioned" and try a pulumi up
, the process fails ("DB Cluster already exists") as it tries to replace the cluster. There doesn't seem to be an equivalent to the allow-engine-mode-change
parameter in the aws.rds.Cluster
definition in the Pulumi documentation [2].
I am using Pulumi version 3.70.0.
Can anyone suggest where I'm going wrong, please? Grateful thanks in advance for any assistance.
答案1
得分: 2
这个转换功能是最近实现的:
> Aurora Serverless v1支持转换为预留
> 您可以将Aurora Serverless v1数据库集群直接转换为预留数据库集群。有关更多信息,请参阅将Aurora Serverless v1数据库集群转换为预留。
> 2023年4月27日
来自:https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/WhatsNew.html
因此,在IaC工具中还没有相应的支持并不令人意外。您可以在https://github.com/pulumi/pulumi/issues 提出功能请求。
英文:
This conversion capability was implemented recently:
> Aurora Serverless v1 supports conversion to provisioned
> You can convert an Aurora Serverless v1 DB cluster directly to a provisioned > DB cluster. For more information, see Converting an Aurora Serverless v1 DB > cluster to provisioned.
> April 27, 2023
from: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/WhatsNew.html
So it's not surprising that corresponding support isn't there yet in IaC tools. You could raise a feature request at https://github.com/pulumi/pulumi/issues
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论