- Endpoints are mounted in a JSON file at
/etc/iot3/endpoints.json
- Credentials are mounted in a JSON file at
/etc/iot3/identity.json
Like HTTP bootstrap the application will update its configuration with the credentials and paths to the services found in these files.
Bootstrap section has to be updated
[bootstrap]
identity = /etc/iot3/identity.json
endpoints = /etc/iot3/endpoints.json
Add a conditional in do_bootstrap(...) method to first look for the file bootstrap field (described above) and if not present fall back to the HTTP ones (as before).
As described in architecture documentation:
endpoints.json provides the services' URL port and protocols
identity.json provides IOT3 ID, username and password to authenticate to those services
/etc/iot3/endpoints.json/etc/iot3/identity.jsonLike HTTP bootstrap the application will update its configuration with the credentials and paths to the services found in these files.
Bootstrap section has to be updated
Add a conditional in do_bootstrap(...) method to first look for the file bootstrap field (described above) and if not present fall back to the HTTP ones (as before).
As described in architecture documentation:
endpoints.jsonprovides the services' URL port and protocolsidentity.jsonprovides IOT3 ID, username and password to authenticate to those services