Description
I have enabled config shadows in the configuration because we'd like to change the configuration on demand from the cloud directly. However, the changed configuration is not persistent. After changing the config shadow, if I restart the aws device client service the changes are applied but are not saved in the actual configuration file, so on next service restart / device reboot the changes will revert back to the real configuration file.
It's important to note that we have registered the device client as our own service rather than the automatic way through the setup cli because we had problems, I am not sure if this has anything to do with the current issue.
Our own service file:
[Unit]
Description=AWS IoT Device Client
Wants=network-online.target
After=network.target network-online.target
[Service]
User=sens
Type=simple
Environment="CONF_PATH=/home/sens/.aws-iot-device-client/aws-iot-device-client.conf"
ExecStart=/home/sens/aws-iot-core-connection/aws-iot-device-client/build/aws-iot-device-client --config-file $CONF_PATH
StandardOutput=append:/home/sens/aws-iot-core-connection/aws-iot-device-client/logs/system.log
StandardError=append:/home/sens/aws-iot-core-connection/aws-iot-device-client/logs/system-error.log
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target