Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project <プロジェクト名>
? Enter a name for the environment <環境名>
? Choose your default editor: <editor名>
? Choose the type of app that you're building javascript
Please tell us about your project
? What javascript framework are you using vue
? Source Directory Path: src
? Distribution Directory Path: dist
? Build Command: npm run-script build
? Start Command: npm run-script serve
Using default provider awscloudformation
For more information on AWS Profiles, see:
? Do you want to use an AWS profile? Yes
? Please choose the profile you want to use
2021/04/15追記
現在は以下のように質問が変わっているようです。
? Enter a name for the project <プロジェクト名>
? Initialize the project with the above configuration? (Y/n) Y
? Select the authentication method you want to use: AWS profile <作成したprofileを選択>
Amplify auth
Amplify Authenticationを追加します。
amplify add auth
実行すると、いくつか質問があるので答えます。
以下は選択した内容です。
Using service: Cognito, provided by: awscloudformation
The current configured provider is Amazon Cognito.
Do you want to use the default authentication and security configuration? Default configuration
Warning: you will not be able to edit these selections.
How do you want users to be able to sign in when using your Cognito User Pool? Email
Warning: you will not be able to edit these selections.
What attributes are required for signing up?
Successfully added resource ... locally</i></a>
Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
2021/04/15追記
現在は以下のように質問が変わっているようです。
Do you want to use the default authentication and security configuration?
> Default configuration
Default configuration with Social Provider (Federation)
Manual configuration
I want to learn more.
バックエンドを更新します。 Are you sure you want to continue? と聞かれるので、Yes と入力します。
すると、Cognitoのユーザプールが追加されます。
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
コメント