mongodb / awscdk-resources-mongodbatlas

MongoDB Atlas AWS CDK Resources
Apache License 2.0
33 stars 15 forks source link

[Bug]: Fail to create CfnAuditing #265

Closed flexelem closed 2 months ago

flexelem commented 2 months ago

Is there an existing issue for this?

CDK package version

v3.3.0

CFN Resource version

v2.81.0

CFN Resource Region

us-east-1

Current Behavior

We want to enable Auditing for our clusters by using CfnAuditing construct, however, we get required key [ProjectId] not found #: extraneous key [GroupId] is not permitted error from CloudFormation when deploying our stack.

AWS CDK code to reproduce the issue

new atlas_mongo.CfnAuditing(this, 'Auditing', {
      groupId: projectId,
});

Steps To Reproduce

Create CfnAuditing construct with groupId set to projectId

cdk synth

No response

Code of Conduct

github-actions[bot] commented 2 months ago

Thanks for opening this issue! Please make sure to provide the following information to help us reproduce the issue:

Thanks for opening this issue. The ticket CLOUDP-245950 was created for internal tracking.

lantoli commented 2 months ago

thanks @flexelem for opening the issue.

After some investigation I realized that the attribute was renamed in CFN from groupId to projectId but we didn't update CDK L1 construct.

Sorry for the inconvenience, I'll create a PR to fix it and will publish a new CDK release with the fix.

flexelem commented 2 months ago

Thanks a lot @lantoli! I am looking forward for the release.

lantoli commented 2 months ago

@flexelem version 3.5.1 is already released with the fix.

Remember to change attribute name to projectId.

Closing the issue but feel free to reopen if you have any further question. thanks!