Skip to content

Instantly share code, notes, and snippets.

@dave-malone
Created November 9, 2020 16:23
Show Gist options
  • Save dave-malone/4702e6291e45ea5c0afe98e9c3849cee to your computer and use it in GitHub Desktop.
Save dave-malone/4702e6291e45ea5c0afe98e9c3849cee to your computer and use it in GitHub Desktop.
AWS CLI Commands to upgrade the GG software on a specific GG core

TARGET_ARCHITECTURE=armv7l TARGET_OPERATING_SYSTEM=raspbian S3_URL_SIGNER_ROLE_ARN="arn:aws:iam:::role/AllowAccessToGreengrassOTAUpdateArtifacts" GG_UPDATE_TARGET="arn:aws:iot:us-east-1::thing/<GG_CORE_THING_NAME>"

aws greengrass create-software-update-job
--update-targets-architecture $TARGET_ARCHITECTURE
--update-targets "${GG_UPDATE_TARGET}"
--update-targets-operating-system $TARGET_OPERATING_SYSTEM
--software-to-update core
--s3-url-signer-role $S3_URL_SIGNER_ROLE_ARN
--update-agent-log-level WARN
--amzn-client-token myClientToken1

aws greengrass create-software-update-job
--update-targets-architecture $TARGET_ARCHITECTURE
--update-targets ["${GG_UPDATE_TARGET}"]
--update-targets-operating-system $TARGET_OPERATING_SYSTEM
--software-to-update core
--s3-url-signer-role $S3_URL_SIGNER_ROLE_ARN
--update-agent-log-level WARN
--amzn-client-token myClientToken1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment