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

feat(dynamodb): enable contributor insights for global secondary index #30560

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

mazyu36
Copy link
Contributor

@mazyu36 mazyu36 commented Jun 16, 2024

Issue # (if applicable)

Closes #15671 .

Reason for this change

To enable contributor insights for a specific global secondary index.

This feature is supported in CFn.

Description of changes

Add contributorInsightsEnabled property to the GlobalSecondaryIndexProps in Table.

In AWS::DynamoDB::GlobalTable GlobalSecondaryIndex, ContributorInsightsSpecification does not exist.

So I didn't change TableV2.

Description of how you validated changes

Add unit test and integ tests.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the star-contributor [Pilot] contributed between 25-49 PRs to the CDK label Jun 16, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team June 16, 2024 09:51
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 labels Jun 16, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jun 21, 2024
@aws-cdk-automation
Copy link
Collaborator

This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state.

Copy link
Contributor

@badmintoncryer badmintoncryer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR! I've added some small comments.

packages/aws-cdk-lib/aws-dynamodb/README.md Outdated Show resolved Hide resolved
import { IntegTest } from '@aws-cdk/integ-tests-alpha';

// CDK parameters
const STACK_NAME = 'aws-cdk-dynamodb-contributor-insights-for-gis';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the meaning of gis? If it means global secondary index, it is better to use gsi.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you pointed out, it was a mistake.
I have corrected it.​​​​​​​​​​​​​​​​

partitionKey: GSI_PARTITION_KEY,
});

new IntegTest(app, 'aws-cdk-dynamodb-contributor-insights-for-gis-test', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like above, I'm only concerned about gis.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

mazyu36 and others added 4 commits September 22, 2024 09:08
Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
…st/integ.dynamodb.contirubtor-insights-for-gsi.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
@mazyu36 mazyu36 force-pushed the dynamodb-cw-insights-for-gsi-15671 branch from 072b75e to 716c60f Compare September 22, 2024 01:09
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 716c60f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Sep 22, 2024
@mazyu36
Copy link
Contributor Author

mazyu36 commented Sep 22, 2024

@badmintoncryer
Thank you for the review!
I’ve addressed the comments.

Copy link
Contributor

@badmintoncryer badmintoncryer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-dynamodb): Support ContributorInsightsSpecification for Global Secondary Index
3 participants