Skip to content

IoT Core Jobs Existence Error

0

Hi,

I am using IoT Core service creating the OTA job. However, I found whenever I ran into an error on creating the job, the next time when I modify the job configuration and keep the same name to create the job again. I ran into an error that Requested otaUpdateJob testOTAUpdateJob already exists However, when I go back to the job list, there is no such job at all. Is this error expected? I doubt all the jobs that fail on the creation was saved as a draft somewhere. But I can't find them on Management Console. At this point, I have to make my job name unique every time I failed on creating the OTA update job.

Thank you in advance

1 Answer
2
Accepted Answer

When you create a FreeRTOS OTA job named foobar in the console, it will actually create a job named AFR_OTA-foobar. However it will also create an OTA update resource named foobar. You can see this using the CLI command aws iot list-ota-updates. Even if you delete the AFR_OTA-foobar job, the foobar OTA update resource will remain. And hence you can't re-use the name until or unless you delete that resource using aws iot delete-ota-update --ota-update-id foobar.

AWS
EXPERT
answered 3 years ago
EXPERT
reviewed 2 years ago
  • Thank you for the explanation! I personally think it's so inconvenient and non-sense as such update resource is still created even the job creation fail over configuration error, and that OTA update resource is wasted and users have to manually delete using commands by putting their name to it one by one

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.