Created
October 29, 2020 17:33
-
-
Save dabit3/be277c190a36c8fb0a48efb2893c4585 to your computer and use it in GitHub Desktop.
Combining CDK outputs with Amplify configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Amplify from 'aws-amplify'; | |
const { AppsyncCdkAppStack } = require('./outputs.json'); | |
import config from './aws-exports'; | |
Amplify.configure({ | |
...config, | |
aws_appsync_graphqlEndpoint: AppsyncCdkAppStack.GraphQLAPIURL, | |
aws_appsync_apiKey: AppsyncCdkAppStack.GraphQLAPIKey | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment