Coder Social home page Coder Social logo

tradle / tradleconf Goto Github PK

View Code? Open in Web Editor NEW
5.0 6.0 5.0 3.43 MB

CLI for managing your Tradle MyCloud instance

License: MIT License

JavaScript 15.83% TypeScript 83.72% Shell 0.27% Dockerfile 0.19%
tradle mycloud tradle-mycloud bot chatbot blockchain kyc serverless

tradleconf's People

Contributors

dependabot[bot] avatar jacobgins avatar martinheidegger avatar mvayngrib avatar pgmemk avatar spwilko avatar urbien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tradleconf's Issues

Tradleconf update fails with disabled MyCloud

$ tradleconf update -c
TypeError: Cannot read property 'tag' of undefined
    at Updater.<anonymous> (@tradle/conf/src/update.ts:172:36)
    at Generator.next (<anonymous>)
    at fulfilled (@tradle/conf/node_modules/tslib/tslib.js:112:62)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

namespace is incorrect in .env

when I do tradleconf init on the test mycloud, the .env it creates has namespace = "io.https://tradle" instead of "io.tradle"

region="us-east-1"
awsProfile="test"
stackName="tdl-dynamic-plugins-ltd-dev"
stackId="arn:aws:cloudformation:us-east-1:185632214405:stack/tdl-dynamic-plugins-ltd-dev/d6270600-d7ef-11ec-9490-0a460341b8e5"
apiBaseUrl="https://kkilo9hec4.execute-api.us-east-1.amazonaws.com/dev"
namespace="io.https://tradle"

CloudFormation for this mycloud has the correct OrgDomain https://tradle.io

Improve working with disabled MyClouds

When a MyCloud is disabled, the CLI currently shows errors during all new operations like in #26 because the underlying code can not look up information about a mycloud in the disabled state.

Currently re-enabling is a multi-step manual process that involves going into the AWS console.

To improve this I am thinking of 3 steps to improve the situation:

  1. If the cli lambda returns an empty result, we should use a AWS command to see if the lambda in question has been disabled, and if it has: throw an error
  2. Find a way to avoid the manual steps when re-enabling a MyCloud
  3. If the cli runs into a "mycloud disabled" error, it should offer the user a prompt, asking if they want to re-enable it.

Tradleconf update fails

via @spwilko

% tradleconf update -c
Updating! To roll back, run:
tradleconf update-manually --template-url ".../compiled-cloudformation-template.json" --stack-parameters "params-3.1.1-rc.14-1642611680013.json"

· loading release 3.1.1-rc.18, grab a coffee...
TypeError: Cannot read property 'ignore' of undefined
    at Updater.<anonymous> (@tradle/conf/lib/node_modules/@tradle/conf/src/update.ts:211:20)
    at Generator.throw (<anonymous>)
    at rejected (@tradle/conf/lib/node_modules/@tradle/conf/node_modules/tslib/tslib.js:113:69)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.