Giter Club home page Giter Club logo

Comments (5)

aggarg avatar aggarg commented on August 17, 2024 1

The current set of scripts rely on some locally generated files and we will see how we can improve them. For now, would you please delete the created certificate and policy using AWS IoT Console:

https://us-west-2.console.aws.amazon.com/iot/home?region=us-west-2#/certificatehub
https://us-west-2.console.aws.amazon.com/iot/home?region=us-west-2#/policyhub

Note that your links may vary depending on the region you are creating your resources in (change us-west-2 with the region your exists in).

Then run the setup command again:

SetupAWS.py setup

Apologies for the inconvenience.

from amazon-freertos.

aggarg avatar aggarg commented on August 17, 2024 1

Thank you for your feedback. These are really good suggestions and we will take them into consideration while improving these scripts.

Thanks.

from amazon-freertos.

aggarg avatar aggarg commented on August 17, 2024

As part of git clean, if you have not deleted the generated certificate and private key (i.e. if you have not deleted the untracked files), you can populate the configure.json again and use the following command to configure your project:

SetupAWS.py update_creds

If you have deleted the generated certificate and private key, you need to delete the resources and recreate them using the following commands:

SetupAWS.py cleanup
SetupAWS.py setup

Thanks.

from amazon-freertos.

jrr avatar jrr commented on August 17, 2024

I tried! cleanup seems to depend on generated artifacts:

jrr@jrrmbp ~/r/r/a/d/c/t/aws_config_quick_start ((413f30f6…))> python SetupAWS.py cleanup
Traceback (most recent call last):
  File "SetupAWS.py", line 193, in <module>
    cleanup()
  File "SetupAWS.py", line 147, in cleanup
    delete_prereq()
  File "SetupAWS.py", line 118, in delete_prereq
    cert_id_file = open(cert_id_filename, 'r')
IOError: [Errno 2] No such file or directory: u'john-test-thing_cert_id_file'

from amazon-freertos.

jrr avatar jrr commented on August 17, 2024

Yeah, that's where I wound up 😒.

As you look to improve the process: it'd be great if generated sources weren't versioned / versioned sources weren't rewritten by automation.

A developer on a team, finishing up a feature branch, shouldn't have to tease out out their code changes from their I-edited-this-file-so-that-I-can-flash-my-device changes.

Edit: also it's a bad practice to check keys into source control!

from amazon-freertos.

Related Issues (20)

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.