-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional gcloud miscellaneous tooling #491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No comments on the .js
misc/gcloud_iot_config/deploy
Outdated
FUNCTION_NAME=gcloud_iot_config | ||
ENTRY_POINT=storeConfig | ||
TOPIC=config_updates | ||
BUCKET=$PROJECT_ID-iot-configs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${PROJECT_ID}-iot-configs here and anywhere else that a literal and a variable are adjacent?
|
||
**NOTE** | ||
- Requires **Cloud Logging** on devices or registry be set to `INFO` or more. | ||
- IoT Core has a default log entries limit of 2000 per second. If a regsitry has `DEBUG` level logging, this may very quickly be exceeding, and will result in missing connection or disconnection log events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: registry
except futures.TimeoutError: | ||
continue | ||
except (futures.CancelledError, KeyboardInterrupt): | ||
future.cancel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to fall through here?
misc/gcloud_store_message/deploy
Outdated
#!/bin/bash | ||
|
||
if (( $# < 4 )); then | ||
echo $0 PROJECT_ID DATASET_ID LOCATION TRIGGER_TOPIC [--drop] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this script support --drop ? maybe remove it?
Included more of my scripts including
Also moved deploy scripts into their own directory
All have been tested/deployed in my projects, however here I have modified slightly to fix unnecesary cloud function logs and service account issues, but have not (at least at time of writing) tested the modified versions work. Also atm they also all use the app engine default credentials which might not have sufficient permissions in some projects, although creating a service account per cloud function is very quick to do.