Skip to content

Instantly share code, notes, and snippets.

@buildmotion
Created August 4, 2021 14:38
Show Gist options
  • Save buildmotion/a4f3cdf82162a7dc1ca93a32f6a30fe5 to your computer and use it in GitHub Desktop.
Save buildmotion/a4f3cdf82162a7dc1ca93a32f6a30fe5 to your computer and use it in GitHub Desktop.

Amplify

Local Setup and Configuration

  • requires user with access key id and secret.

Amplify Init

amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project creatr
The following configuration will be applied:

Project information
| Name: creatr
| Environment: dev
| Default editor: Visual Studio Code
| App type: javascript
| Javascript framework: none
| Source Directory Path: src
| Distribution Directory Path: dist
| Build Command: npm run-script build
| Start Command: npm run-script start

? Initialize the project with the above configuration? Yes
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS access keys
? accessKeyId:  ********************
? secretAccessKey:  ****************************************
? region:  us-east-1
Adding backend environment dev to AWS Amplify Console app: d1crk3evge2xx9
 Initializing project in the cloud...

CREATE_IN_PROGRESS amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 17:49:26 GMT-0600 (Mountain Daylight Time) User Initiated             
CREATE_IN_PROGRESS DeploymentBucket          AWS::S3::Bucket            Tue Aug 03 2021 17:49:30 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS UnauthRole                AWS::IAM::Role             Tue Aug 03 2021 17:49:31 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS AuthRole                  AWS::IAM::Role             Tue Aug 03 2021 17:49:31 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS DeploymentBucket          AWS::S3::Bucket            Tue Aug 03 2021 17:49:31 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Initializing project in the cloud...

CREATE_IN_PROGRESS UnauthRole AWS::IAM::Role Tue Aug 03 2021 17:49:31 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Initializing project in the cloud...

CREATE_IN_PROGRESS AuthRole AWS::IAM::Role Tue Aug 03 2021 17:49:32 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Initializing project in the cloud...

CREATE_COMPLETE UnauthRole AWS::IAM::Role Tue Aug 03 2021 17:49:45 GMT-0600 (Mountain Daylight Time) 
CREATE_COMPLETE AuthRole   AWS::IAM::Role Tue Aug 03 2021 17:49:46 GMT-0600 (Mountain Daylight Time) 
 Initializing project in the cloud...

CREATE_COMPLETE DeploymentBucket          AWS::S3::Bucket            Tue Aug 03 2021 17:49:52 GMT-0600 (Mountain Daylight Time) 
CREATE_COMPLETE amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 17:49:54 GMT-0600 (Mountain Daylight Time) 
 Successfully created initial AWS cloud resources for deployments.
 Initialized provider successfully.
Initialized your environment successfully.

Your project has been successfully initialized and connected to the cloud!

Some next steps:
"amplify status" will show you what you've added already and if it's locally configured or deployed
"amplify add <category>" will allow you to add features like user login or a backend API
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify console" to open the Amplify Console and view your project status
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud

Pro tip:
Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything

Amplify Add Analytics

amplify add analytics
? Select an Analytics provider Amazon Pinpoint
? Provide your pinpoint resource name: creatrPinPointResource
Adding analytics would add the Auth category to the project if not already added.
? Apps need authorization to send analytics events. Do you want to allow guests and unauthenticated users to send analytics events? (we recommend you allow this when getting started) Yes
Successfully added auth resource locally.
Successfully added resource creatrPinPointResource locally

Some next steps:
"amplify push" builds all of your local backend resources and provisions them in the cloud
"amplify publish" builds all your local backend and front-end resources (if you have hosting category added) and provisions them in the cloud

Amplify Push

amplify push
 Successfully pulled backend environment dev from the cloud.

Current Environment: dev

| Category  | Resource name          | Operation | Provider plugin   |
| --------- | ---------------------- | --------- | ----------------- |
| Auth      | cognitoac2d48fe        | Create    | awscloudformation |
| Analytics | creatrPinPointResource | Create    | awscloudformation |
? Are you sure you want to continue? Yes
 Updating resources in the cloud. This may take a few minutes...

UPDATE_IN_PROGRESS amplify-creatr-dev-174923       AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:38 GMT-0600 (Mountain Daylight Time) User Initiated
CREATE_IN_PROGRESS authcognitoac2d48fe             AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time)               
CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole  AWS::IAM::Role             Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time)               
CREATE_IN_PROGRESS analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time)               
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionRole AWS::IAM::Role             Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_IN_PROGRESS authcognitoac2d48fe            AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS amplify-creatr-dev-174923-authcognitoac2d48fe-18B8FEKVUH9Q7 AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:43 GMT-0600 (Mountain Daylight Time) User Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:44 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS amplify-creatr-dev-174923-analyticscreatrPinPointResource-1KJIXUW74RYU0 AWS::CloudFormation::Stack Tue Aug 03 2021 18:33:44 GMT-0600 (Mountain Daylight Time) User Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS IdentityPool AWS::Cognito::IdentityPool Tue Aug 03 2021 18:33:48 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS LambdaExecutionRole AWS::IAM::Role Tue Aug 03 2021 18:33:49 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS LambdaExecutionRole AWS::IAM::Role Tue Aug 03 2021 18:33:50 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS IdentityPool        AWS::Cognito::IdentityPool               Tue Aug 03 2021 18:33:50 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    IdentityPool        AWS::Cognito::IdentityPool               Tue Aug 03 2021 18:33:51 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS IdentityPoolRoleMap AWS::Cognito::IdentityPoolRoleAttachment Tue Aug 03 2021 18:33:53 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS IdentityPoolRoleMap                                         AWS::Cognito::IdentityPoolRoleAttachment Tue Aug 03 2021 18:33:54 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    IdentityPoolRoleMap                                         AWS::Cognito::IdentityPoolRoleAttachment Tue Aug 03 2021 18:33:55 GMT-0600 (Mountain Daylight Time)                            
CREATE_COMPLETE    amplify-creatr-dev-174923-authcognitoac2d48fe-18B8FEKVUH9Q7 AWS::CloudFormation::Stack               Tue Aug 03 2021 18:33:56 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE UpdateRolesWithIDPFunctionRole AWS::IAM::Role Tue Aug 03 2021 18:34:01 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE    authcognitoac2d48fe        AWS::CloudFormation::Stack Tue Aug 03 2021 18:34:05 GMT-0600 (Mountain Daylight Time) 
CREATE_IN_PROGRESS UpdateRolesWithIDPFunction AWS::Lambda::Function      Tue Aug 03 2021 18:34:08 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE LambdaExecutionRole AWS::IAM::Role Tue Aug 03 2021 18:34:09 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS UpdateRolesWithIDPFunction AWS::Lambda::Function Tue Aug 03 2021 18:34:11 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    UpdateRolesWithIDPFunction AWS::Lambda::Function Tue Aug 03 2021 18:34:11 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS PinpointFunction AWS::Lambda::Function Tue Aug 03 2021 18:34:11 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS PinpointFunction AWS::Lambda::Function Tue Aug 03 2021 18:34:13 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:13 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE PinpointFunction AWS::Lambda::Function Tue Aug 03 2021 18:34:14 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS UpdateRolesWithIDPFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:17 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    UpdateRolesWithIDPFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:17 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS PinpointFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:17 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS PinpointFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:20 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    PinpointFunctionOutputs Custom::LambdaCallout Tue Aug 03 2021 18:34:21 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS CognitoAuthPolicy       AWS::IAM::Policy      Tue Aug 03 2021 18:34:23 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS CognitoUnauthPolicy     AWS::IAM::Policy      Tue Aug 03 2021 18:34:23 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS CognitoAuthPolicy       AWS::IAM::Policy      Tue Aug 03 2021 18:34:23 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS CognitoUnauthPolicy AWS::IAM::Policy Tue Aug 03 2021 18:34:24 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE CognitoUnauthPolicy AWS::IAM::Policy Tue Aug 03 2021 18:34:37 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE CognitoAuthPolicy                                                       AWS::IAM::Policy           Tue Aug 03 2021 18:34:40 GMT-0600 (Mountain Daylight Time) 
CREATE_COMPLETE amplify-creatr-dev-174923-analyticscreatrPinPointResource-1KJIXUW74RYU0 AWS::CloudFormation::Stack Tue Aug 03 2021 18:34:42 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE                     analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:34:45 GMT-0600 (Mountain Daylight Time) 
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS amplify-creatr-dev-174923       AWS::CloudFormation::Stack Tue Aug 03 2021 18:34:48 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 18:34:49 GMT-0600 (Mountain Daylight Time) 
 All resources are updated in the cloud

Pinpoint URL to track events https://us-east-1.console.aws.amazon.com/pinpoint/home/?region=us-east-1#/apps/9d96dbf2e111423e92f218578a0ce0b9/analytics/overview

Amplify Add Hosting

amplify add hosting
? Select the plugin module to execute Hosting with Amplify Console (Managed hosting with custom domains, Continuous deployment)
? Choose a type Manual deployment

You can now publish your app using the following command:

Command: amplify publish

Amplify Publish

amplify publish    
 Successfully pulled backend environment dev from the cloud.

Current Environment: dev

| Category  | Resource name          | Operation | Provider plugin   |
| --------- | ---------------------- | --------- | ----------------- |
| Hosting   | amplifyhosting         | Create    | awscloudformation |
| Auth      | cognitoac2d48fe        | No Change | awscloudformation |
| Analytics | creatrPinPointResource | No Change | awscloudformation |
? Are you sure you want to continue? Yes
 Updating resources in the cloud. This may take a few minutes...

UPDATE_IN_PROGRESS amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:15 GMT-0600 (Mountain Daylight Time) User Initiated
UPDATE_IN_PROGRESS authcognitoac2d48fe       AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:21 GMT-0600 (Mountain Daylight Time)               
 Updating resources in the cloud. This may take a few minutes...

UPDATE_IN_PROGRESS analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:21 GMT-0600 (Mountain Daylight Time) 
CREATE_IN_PROGRESS hostingamplifyhosting           AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:21 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE    authcognitoac2d48fe             AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:21 GMT-0600 (Mountain Daylight Time)                            
CREATE_IN_PROGRESS hostingamplifyhosting           AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:22 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
UPDATE_COMPLETE    analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:22 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS amplify-creatr-dev-174923-hostingamplifyhosting-1PB3VY3OR11TL AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:21 GMT-0600 (Mountain Daylight Time) User Initiated
CREATE_IN_PROGRESS AmplifyBranch                                                 AWS::Amplify::Branch       Tue Aug 03 2021 18:56:26 GMT-0600 (Mountain Daylight Time)               
 Updating resources in the cloud. This may take a few minutes...

CREATE_IN_PROGRESS AmplifyBranch                                                 AWS::Amplify::Branch       Tue Aug 03 2021 18:56:29 GMT-0600 (Mountain Daylight Time) Resource creation Initiated
CREATE_COMPLETE    AmplifyBranch                                                 AWS::Amplify::Branch       Tue Aug 03 2021 18:56:29 GMT-0600 (Mountain Daylight Time)                            
CREATE_COMPLETE    amplify-creatr-dev-174923-hostingamplifyhosting-1PB3VY3OR11TL AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:30 GMT-0600 (Mountain Daylight Time)                            
 Updating resources in the cloud. This may take a few minutes...

CREATE_COMPLETE                     hostingamplifyhosting     AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:32 GMT-0600 (Mountain Daylight Time) 
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:34 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE authcognitoac2d48fe             AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:36 GMT-0600 (Mountain Daylight Time) 
UPDATE_COMPLETE analyticscreatrPinPointResource AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:36 GMT-0600 (Mountain Daylight Time) 
 Updating resources in the cloud. This may take a few minutes...

UPDATE_COMPLETE amplify-creatr-dev-174923 AWS::CloudFormation::Stack Tue Aug 03 2021 18:56:36 GMT-0600 (Mountain Daylight Time) 
 All resources are updated in the cloud


Publish started for amplifyhosting

> workspace@0.1.5 build /Users/valencia/work/github/angular-architecture/workspace
> nx build


> nx run creatr:build 
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
 Browser application bundle generation complete.
 Copying assets complete.
 Index html generation complete.

Initial Chunk Files                                                                                              | Names                                                                                                         |      Size
vendor.js                                                                                                        | vendor                                                                                                        |   4.36 MB
main.js                                                                                                          | main                                                                                                          |   1.14 MB
styles.css                                                                                                       | styles                                                                                                        | 588.69 kB
polyfills.js                                                                                                     | polyfills                                                                                                     | 141.41 kB
runtime.js                                                                                                       | runtime                                                                                                       |  11.64 kB

                                                                                                                 | Initial Total                                                                                                 |   6.22 MB

Lazy Chunk Files                                                                                                 | Names                                                                                                         |      Size
default~angular-architecture-security~payment-success-payment-success-module~products-products-modul~f2808a80.js | default~angular-architecture-security~payment-success-payment-success-module~products-products-modul~f2808a80 |   5.18 MB
default~access-code-access-code-module~change-password-change-password-module~cut-optimizer-cut-opti~d9ee980c.js | default~access-code-access-code-module~change-password-change-password-module~cut-optimizer-cut-opti~d9ee980c |   2.01 MB
create-account-create-account-module.js                                                                          | create-account-create-account-module                                                                          | 802.37 kB
change-password-change-password-module.js                                                                        | change-password-change-password-module                                                                        | 785.10 kB
access-code-access-code-module.js                                                                                | access-code-access-code-module                                                                                | 780.90 kB
products-products-module.js                                                                                      | products-products-module                                                                                      | 778.69 kBm
payment-success-payment-success-module.js                                                                        | payment-success-payment-success-module                                                                        | 770.29 kB
stock-info-stock-info-module.js                                                                                  | stock-info-stock-info-module                                                                                  | 769.57 kB
job-information-job-information-module.js                                                                        | job-information-job-information-module                                                                        | 768.66 kB
material-lengths-material-lengths-module.js                                                                      | material-lengths-material-lengths-module                                                                      | 768.60 kB
optimized-cut-results-optimized-cut-results-module.js                                                            | optimized-cut-results-optimized-cut-results-module                                                            | 756.29 kB
forgot-password-forgot-password-module.js                                                                        | forgot-password-forgot-password-module                                                                        | 754.78 kB
login-login-module.js                                                                                            | login-login-module                                                                                            | 752.92 kB
privacy-privacy-module.js                                                                                        | privacy-privacy-module                                                                                        | 661.16 kB
default~change-password-change-password-module~create-account-create-account-module.js                           | default~change-password-change-password-module~create-account-create-account-module                           | 614.37 kB
home-home-module.js                                                                                              | home-home-module                                                                                              | 614.19 kB
logout-logout-module.js                                                                                          | logout-logout-module                                                                                          | 604.02 kB
default~cut-optimizer-cut-optimizer-module~cuttr-report-cuttr-report-module~material-lengths-materia~a51e41a3.js | default~cut-optimizer-cut-optimizer-module~cuttr-report-cuttr-report-module~material-lengths-materia~a51e41a3 |  58.03 kB
workflow-workflow-module.js                                                                                      | workflow-workflow-module                                                                                      |  30.45 kB
cut-optimizer-cut-optimizer-module.js                                                                            | cut-optimizer-cut-optimizer-module                                                                            |  28.58 kB
cuttr-report-cuttr-report-module.js                                                                              | cuttr-report-cuttr-report-module                                                                              |  24.70 kB
angular-architecture-security.js                                                                                 | angular-architecture-security                                                                                 |  13.34 kB
terms-and-conditions-terms-and-conditions-module.js                                                              | terms-and-conditions-terms-and-conditions-module                                                              |   8.26 kB
about-about-module.js                                                                                            | about-about-module                                                                                            |   8.13 kB
payment-cancel-payment-cancel-module.js                                                                          | payment-cancel-payment-cancel-module                                                                          |   7.93 kB
cookies-policy-cookies-policy-module.js                                                                          | cookies-policy-cookies-policy-module                                                                          |   7.82 kB
verify-account-verify-account-module.js                                                                          | verify-account-verify-account-module                                                                          |   7.79 kB
cart-cart-module.js                                                                                              | cart-cart-module                                                                                              |   7.17 kB
angular-architecture-cuttr-cuttr-store.js                                                                        | angular-architecture-cuttr-cuttr-store                                                                        |   6.35 kB
angular-architecture-cuttr-cuttr-client.js                                                                       | angular-architecture-cuttr-cuttr-client                                                                       |   4.65 kB
angular-architecture-creatr-legal.js                                                                             | angular-architecture-creatr-legal                                                                             |   4.36 kB
common.js                                                                                                        | common                                                                                                        |   1.15 kB

Build at: 2021-08-04T00:58:22.611Z - Hash: 00c60f6e875b000d8b7b - Time: 90622ms

Warning: /Users/valencia/work/github/angular-architecture/workspace/node_modules/ngx-loggly-logger/__ivy_ngcc__/fesm2015/ngx-loggly-logger.js depends on 'ng2-cookies'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /Users/valencia/work/github/angular-architecture/workspace/libs/rule-engine/src/lib/rules/AreEqual.ts depends on 'typescript-dotnet-commonjs/System/Compare'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies


 Zipping artifacts failed. This is often due to an invalid distribution directory path. Run "amplify configure project" to check if your Distribution Directory is pointing to a valid path.
An error occurred during the publish operation: Unknown error occurred.

Amplify Configure Project

amplify configure project

Project information
| Name: creatr
| Environment: dev
| Default editor: undefined
| App type: javascript
| Javascript framework: none
| Source Directory Path: src
| Distribution Directory Path: dist
| Build Command: npm run-script build
| Start Command: npm run-script start

Advanced: Container-based deployments
| Leverage container-based deployments: No

? Which setting do you want to configure? Project information
? Enter a name for the project creatr
? Choose your default editor: Visual Studio Code
? Choose the type of app that you're building javascript
Please tell us about your project
? What javascript framework are you using angular
Failed to read /Users/valencia/work/github/angular-architecture/workspace/apps/creatr/angular.json: File at path: '/Users/valencia/work/github/angular-architecture/workspace/apps/creatr/angular.json' does not exist
Angular apps need to be set up by the Angular CLI first: [https://docs.amplify.aws/start/getting-started/setup/q/integration/angular](https://docs.amplify.aws/start/getting-started/setup/q/integration/angular)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment