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: include all envs in gen 2 data codegen #14087

Open
wants to merge 7 commits into
base: migrations
Choose a base branch
from
Open

Conversation

dpilch
Copy link
Member

@dpilch dpilch commented Jan 29, 2025

Description of changes

Add table mappings for all envs to Gen 2 Codegen.

import { defineData } from \"@aws-amplify/backend\";
export const data = defineData({
    // Replace each environment name with the corresponding branch name. Use \"sandbox\" for your sandbox environment.
    importedAmplifyDynamoDBTableMap: {
       prod: { Todo: 'todo-table-prod' },
       staging: { Todo: 'todo-table-staging' },
       /**
        * Unable to find the table mapping for this environment.
        * This could be due the enableGen2Migration feature flag not being set to true for this environment.
        * Please enable the feature flag and push the backend resources.
        * If you are not planning to migrate this environment, you can remove this key.
        */
        dev: {}
    },
    schema: \"TODO: Add your existing graphql schema here\"
});

Issue #, if available

N/A

Description of how you validated changes

Unit tests

Checklist

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

@dpilch dpilch marked this pull request as ready for review January 30, 2025 16:57
@dpilch dpilch requested a review from a team as a code owner January 30, 2025 16:57
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