使用 AWS CloudFormation 添加选项组 [英] Adding an option group using AWS CloudFormation

查看:34
本文介绍了使用 AWS CloudFormation 添加选项组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个 CloudFormation 模板,该模板将使用多可用区选项创建 SQL Server 数据库(使用 RDS)(因此它在不同的可用区中维护同步备用副本).

I'm building a CloudFormation template that will create a SQL Server database (using RDS) with the Multi-AZ option (so it maintains a synchronous standby replica in a different Availability Zone).

但是,要使此工作正常进行,我需要将数据库实例与具有镜像"选项的选项组相关联.无法在任何地方找到如何使用 CloudFormation 模板创建选项组.

However, to make this work, I need to associated the database instance with an option group that has the Mirroring option. Haven't been able to find anywhere how to create an option group with a CloudFormation template.

如何在 CloudFormation 模板中创建选项组?

How do I create an option group in a CloudFormation template?

推荐答案

截至目前,CloudFormation 不支持选项组.如果需要在模板内创建数据库,可以事先用cli创建选项组,并设置为参数.通过这种方式,您可以正确填充 AWS::RDS::DBInstance 资源的 OptionGroupName 值.

As of now, option groups are not supported by CloudFormation. If the database needs to be created within the template, you can create the option group with the cli beforehand and set it as a parameter. This way you can correctly populate the OptionGroupName value for the AWS::RDS::DBInstance resource.

这篇关于使用 AWS CloudFormation 添加选项组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆