question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aws-exports.js file missing

See original GitHub issue

Consider a new react-native application… Follow along the instructions, I am trying to add Authentication.

The instructions say:

The ./src/aws-exports.js file that’s created has all of the appropriate cloud resources defined for your application.

Alas, I do not see any such aws-exports.js file being created!

I am using @aws-amplify/cli@1.6.1, Node 10.15.0, NPM 6.4.1, MacOS 10.14.4.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jordanranzcommented, Apr 16, 2019

Hey @awhitford,

During amplify init which platform did you select in the list of iOS, Android, and Javascript?

Also, during amplify init there was a prompt to enter your ‘Source Directory Path’. I believe if you used the default it would be at ‘/’ rather than ‘src/’. This is where the aws-exports.js file is saved.

The documentation can be improved here to read from ‘/’ since that is the default Source path.

0reactions
guptapuja7commented, Apr 16, 2020

@jordanranz i get errorinit failed Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:205:27) { message: ‘read ECONNRESET’, errno: ‘ECONNRESET’, code: ‘NetworkingError’, syscall: ‘read’, region: ‘us-east-1’, hostname: ‘amplify.us-east-1.amazonaws.com’, retryable: true, time: 2020-04-16T11:59:59.320Z

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing aws-exports.js always when building AWS Amplify ...
My solution was to simply generate aws-exports.js via script before the "npm run build" step. You simply store aws-exports.js contents in an ...
Read more >
Configuring build settings - AWS Amplify Hosting
Build settings is visible in the Amplify console's App settings menu only when an app is set up ... You can install OS...
Read more >
Getting Started with AWS Amplify - Coder Society
The aws-exports.js file contains all the credentials your client needs to interact with the deployed infrastructure. You'll use it to initialize ...
Read more >
Get started - Typical workflows - AWS Amplify Docs
To generate client configuration files (aws-exports.js, amplifyconfiguration.json, or amplifyconfiguration.dart) for an existing project that is listed in the ...
Read more >
[Solved]-Region is missing error - AWS Amplify React-Reactjs
In repository from where you are exporting your files, there is a file with name aws-exports.js. It should have a structure like:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found