Last active
December 5, 2018 19:13
-
-
Save annjawn/4cbdabe26af8800e3edae8e2c9f81f06 to your computer and use it in GitHub Desktop.
Modular import of amplify core
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/core'; | |
export function configureAmplify() { | |
Amplify.configure( | |
{ | |
Auth: { | |
identityPoolId: process.env.REACT_APP_identityPoolId, | |
region: process.env.REACT_APP_region, | |
userPoolId: process.env.REACT_APP_userPoolId, | |
userPoolWebClientId: process.env.REACT_APP_userPoolWebClientId, | |
}, | |
Storage: { | |
bucket: process.env.REACT_APP_Bucket_name, | |
region: process.env.REACT_APP_region, | |
identityPoolId: process.env.REACT_APP_identityPoolId | |
} | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment