Skip to content

Conversation

@iankhou
Copy link
Contributor

@iankhou iankhou commented Oct 30, 2025

Problem

Issue number, if available:

Changes

Corresponding docs PR, if applicable:

Validation

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2025

🦋 Changeset detected

Latest commit: 21223d6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-amplify/backend-data Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +165 to +170
if (shouldAdoptExistingTable) {
return AmplifyDataDefinition.fromString(schema, {
...ADOPTED_DYNAMO_DATA_SOURCE_STRATEGY,
tableName: importedTableName,
} as unknown as ModelDataSourceStrategy);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the important part.

Comment on lines +75 to +80
// Adopted strategy where Amplify will synthesize a managed CFN table resource
const ADOPTED_DYNAMO_DATA_SOURCE_STRATEGY = {
dbType: 'DYNAMODB',
provisionStrategy: 'ADOPTED_AMPLIFY_TABLE',
} as const;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the important part.

@iankhou iankhou force-pushed the iankhou-adopted-table-api branch from d180225 to 21223d6 Compare October 30, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant