Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rds : OptionGroup not getting created #27111

Closed
dextel2 opened this issue Sep 12, 2023 · 2 comments
Closed

rds : OptionGroup not getting created #27111

dextel2 opened this issue Sep 12, 2023 · 2 comments
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@dextel2
Copy link

dextel2 commented Sep 12, 2023

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 dextel2 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 12, 2023
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Sep 12, 2023
@dextel2
Copy link
Author

dextel2 commented Sep 12, 2023

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

@dextel2 dextel2 closed this as completed Sep 12, 2023
@github-actions
Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant