amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

per project aws config and named aws profile #49

Closed UnleashedMind closed 6 years ago

UnleashedMind commented 6 years ago

This pull request contains these major changes:

  1. Configuration on aws access is now per project, this enables use of different user credentials to access different mobile hub project associated with different frontend projects. This change allows more flexibility in using the cli.
  2. Added the use of named aws profiles through awsmobile configure aws --profile <name>
  3. awsmobile push timestamp check is refactored to be more accurate, to avoid unneccessary update on the backend awsmobile project in the aws cloud.
codecov-io commented 6 years ago

Codecov Report

Merging #49 into master will decrease coverage by 0.37%. The diff coverage is 21.1%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #49      +/-   ##
==========================================
- Coverage    50.3%   49.92%   -0.38%     
==========================================
  Files          46       52       +6     
  Lines        2944     3387     +443     
  Branches      460      543      +83     
==========================================
+ Hits         1481     1691     +210     
- Misses       1200     1373     +173     
- Partials      263      323      +60
Impacted Files Coverage Δ
lib/utils/awsmobilejs-constant.js 100% <ø> (ø) :arrow_up:
lib/utils/cli-config-manager.js 25% <ø> (ø) :arrow_up:
lib/backend-operations/ops-user-signin.js 20.68% <0%> (ø) :arrow_up:
lib/backend-operations/ops-project.js 32.35% <0%> (ø) :arrow_up:
lib/backend-operations/ops-hosting.js 23.91% <0%> (ø) :arrow_up:
lib/aws-operations/aws-client.js 15.38% <0%> (+0.23%) :arrow_up:
lib/backend-operations/cloud-api-lambda-builder.js 7.85% <0%> (-0.42%) :arrow_down:
...ib/backend-operations/cloud-api-lambda-uploader.js 11.86% <0%> (+0.19%) :arrow_up:
lib/aws-operations/mobile-exportjs-file-manager.js 18.3% <0%> (ø) :arrow_up:
lib/utils/awsmobilejs-name-manager.js 28.57% <0%> (-4.77%) :arrow_down:
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6340401...233cc1f. Read the comment docs.