gpt4 book ai didi

amazon-web-services - 通过 CloudFormation 使用 EnableCloudwatchLogsExports 参数创建 RDS aurora-mysql5.7

转载 作者:行者123 更新时间:2023-12-04 01:40:18 25 4
gpt4 key购买 nike

我有 CloudFormation 模板,用于创建 RDS aurora-mysql5.7 集群。

我正在尝试向其添加 EnableCloudwatchLogsExports 参数:

  RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- String

还有一个问题...我对“错误”、“错误”、“错误日志”itp 的所有尝试。完成回滚和错误消息:

You cannot use the log types 'error logs' with engine version aurora-mysql 5.7.12. For supported log types, see the documentation. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 16f5c442-6969-44aa-a67e-12f9ca524055)

我想将审核、错误、常规和慢查询日志发布到 CloudWatch。我在文档中找不到此属性的“允许”支持值。

最佳答案

尝试以下操作:

  • 尝试按如下方式指定日志类型:
RDSCluster:
Type: AWS::RDS::DBCluster
Properties:
EnableCloudwatchLogsExports:
- "error"
- "general"
- "slowquery"
- "audit"

关于amazon-web-services - 通过 CloudFormation 使用 EnableCloudwatchLogsExports 参数创建 RDS aurora-mysql5.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57771905/

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