aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.51k stars 3.85k forks source link

rds : OptionGroup not getting created #27111

Closed dextel2 closed 1 year ago

dextel2 commented 1 year ago

Describe the bug

I am trying to deploy

    this.optionGroup = new rds.OptionGroup(this, 'OptionGroup', {
      engine: rds.DatabaseInstanceEngine.mysql({
        version: rds.MysqlEngineVersion.VER_8_0, // Replace with your desired MySQL version
      }),
      description: 'Audit log option group',
      configurations: [{
        name: 'MyAuditLoggingConfig',
        settings: {
          SERVER_AUDIT: 'FORCE_PLUS_PERMANENT',
          SERVER_AUDIT_EVENTS: 'CONNECT, QUERY, QUERY_DDL, QUERY_DML, QUERY_DCL, QUERY_DML_NO_SELECT', //Types of actions to be logged (connect, query, or table),
          SERVER_AUDIT_QUERY_LOG_LIMIT: '1024',
          SERVER_AUDIT_LOGGING: 'ON',
        }
      }]
    });

but I am getting the error

Unknown option: MyAuditLoggingConfig(Service: Rds, Status Code: 400 on Bitbucket CI/CD pipelines

Expected Behavior

It should create an option group with audit logs with the existing new rds.DatabaseCluster(this, 'Cluster'...

Current Behavior

It is not deploying

Reproduction Steps

Create the stack and deploy using CI/CD via Bitbucket

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.67.0

Framework Version

No response

Node.js Version

18.x

OS

Windows

Language

Typescript

Language Version

TypeScript

Other information

No response

dextel2 commented 1 year ago

Resolved it, the name property should be MARIADB_AUDIT_PLUGIN instead of MyAuditLoggingConfig

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.