amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Creating a blank 'aws-exports.js' with 'amplify init'

Open mbahar opened this issue 8 years ago • 6 comments

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

aws-exports.js file is not available until I run amplify push for the first time. So, it is confusing not to find a configuration file after a successful initialization.

What is the expected behavior?

With amplify init, create an aws-exports.js file without any configuration in it.

mbahar avatar Aug 29 '18 23:08 mbahar

I was searching around for an aws-exports.js file after amplify init because it is mentioned in the docs.

When you run amplify init command you are asked for the details of your project. A configuration file for your app is put in your configured source directory called aws-exports.js. https://aws-amplify.github.io/amplify-js/media/quick_start#step-4-set-up-your-backend

So either change the docs or change the behaviour like requested here.

akleiber avatar Sep 05 '18 21:09 akleiber

I dont get it, the expected behavior is to get a aws-exports.js EMPTY file after amplify init? I dont even get the file after amplify init event when it creates the roles and bucket

rskinnerc avatar Sep 20 '18 20:09 rskinnerc

@VetBoard The expected behavior is to get an aws_exports.js file after you add a resource and push it.

kaustavghosh06 avatar Sep 20 '18 20:09 kaustavghosh06

Ah ok @kaustavghosh06 perfect. thank you

rskinnerc avatar Sep 20 '18 20:09 rskinnerc

Hey guys, witht he latest version of the CLI we generate an aws_exports file on an amplify init.

kaustavghosh06 avatar Apr 03 '19 05:04 kaustavghosh06

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

github-actions[bot] avatar May 27 '21 12:05 github-actions[bot]