3
votes

I've got CloudFormation template that I'm using to create RDS aurora-mysql5.7 cluster.

I'm trying to add EnableCloudwatchLogsExports parameter to it:

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

And there is a question... All my attempts with 'error', 'errors', 'error log' itp. finished with rollback and error message:

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)

I'd like to publish Audit, Error, General and Slow query logs to CloudWatch. I can't find in docs what are the 'allowed' supported values for this property.

1

1 Answers

4
votes

Try out the following:

  • Try to specify the log types as follows:
RDSCluster:
    Type: AWS::RDS::DBCluster
    Properties: 
      EnableCloudwatchLogsExports: 
        - "error"
        - "general"
        - "slowquery"
        - "audit"