问题描述
根据Aurora Serverless的文档,有3种创建Aurora无服务器数据库集群的方法:AWS管理控制台,CLI和RDS API。 ()
From Aurora Serverless's document, there are 3 ways to create an Aurora serverless DB cluster: AWS management console, CLI, and RDS API. (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/aurora-serverless.create.html)
根据我的理解,可以使用 EngineMode $ RDS API中的c $ c>创建Aurora Serverless,但此属性在
AWS :: RDS :: DBCluster
中尚不可用()。
Form my understanding, one would use EngineMode
in the RDS API to create Aurora Serverless, but this property is not available in AWS::RDS::DBCluster
yet (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html).
是否有可能从cloudformation创建Aurora无服务器集群?
Would it be possible to create an Aurora Serverless Cluster from cloudformation? Any advice would be appreciated!
推荐答案
感谢克里斯的更新。作为示例,这是我的无服务器极光的cloudFormation模板。我们不再需要 DBInstance
。
Thanks for Chris's update. As an example, here is my cloudFormation template for serverless aurora. We no longer need the DBInstance
.
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
MasterUsername:
Ref: DBUsername
MasterUserPassword:
Ref: DBPassword
DatabaseName: RANDOMNAME
Engine: aurora
EngineMode: serverless
ScalingConfiguration:
AutoPause: true
MaxCapacity: 16
MinCapacity: 2
SecondsUntilAutoPause: 300
DBSubnetGroupName:
Ref: DBSubnetGroup
RDS所有可用选项(包括Aurora)的更完整示例):
More complete example of all available options for RDS (including Aurora):https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html
这篇关于从cloudformation创建Aurora无服务器集群吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!