Create custom job templates by using the AWS Management Console
This topic explains how to create, delete, and view details about job templates by using the AWS IoT console.
Create a custom job template
You can either create an original custom job template or create a job template from an existing job. You can also create a custom job template from an existing job that was created using an AWS managed template. For more information, see Create custom job templates from managed templates.
-
Start creating your job template
-
Go to the Job templates hub of the AWS IoT console
and choose the Custom templates tab. -
Choose Create job template.
Note
You can also navigate to the Job templates page from the Related services page under Fleet Hub.
-
-
Specify job template properties
In the Create job template page, enter an alphanumeric identifier for your job name and an alphanumeric description to provide additional details about the template.
Note
We don't recommend using personally identifiable information in your job IDs or descriptions.
-
Provide job document
Provide a JSON job file that is either stored in an S3 bucket or as an inline job document that is specified within the job. This job file will become the job document when you create a job using this template.
If the job file is stored in an S3 bucket, enter the S3 URL or choose Browse S3, and then navigate to your job document and select it.
Note
You can select only S3 buckets in your current Region.
-
Continue to add any additional configurations for your job and then review and create your job. For information about the additional, optional configurations, refer to the following links:
-
Choose your job
-
Go to the Job hub of the AWS IoT console
and choose the job that you want to use as the basis for your job template. -
Choose Save as a job template.
Note
Optionally, you can choose a different job document or edit the advanced configurations from the original job, and then choose Create job template. Your new job template appears on the Job templates page.
-
-
Specify job template properties
In the Create job template page, enter an alphanumeric identifier for your job name and an alphanumeric description to provide additional details about the template.
Note
The job document is the job file that you specified when creating the template. If the job document is specified within the job instead of an S3 location, you can see the job document in the details page of this job.
-
Continue to add any additional configurations for your job and then review and create your job. For information about the additional configurations, see:
Create a job from a custom job template
You can create a job from a custom job template by going to the details page of your job template as described in this topic. You can also create a job or by choosing the job template you want to use when running the job creation workflow. For more information, see Create and manage jobs by using the AWS Management Console.
This topic shows how to create a job from the details page of a custom job template. You can also create a job from an AWS managed template. For more information, see Create a job using managed templates.
-
Choose your custom job template
Go to the Job templates hub of the AWS IoT console
and choose the Custom templates tab, and then choose your template. -
Create a job using your custom template
To create a job:
-
In the details page of your template, choose Create job.
The console switches to the Custom job properties step of the Create job workflow where your template configuration has been added.
-
Enter a unique alphanumeric job name, and optional description and tags, and then choose Next.
-
Choose the things or thing groups as job targets that you want to run in this job.
In the Job document section, your template is displayed with its configuration settings. If you want to use a different job document, choose Browse and select a different bucket and document. Choose Next.
-
On the Job configuration page, choose the job type as continuous or a snapshot job. A snapshot job is complete when it finishes its run on the target devices and groups. A continuous job applies to thing groups and runs on any device that you add to a specified target group.
-
Continue to add any additional configurations for your job and then review and create your job. For information about the additional configurations, see:
-
Note
When a job created from a job template updates the existing parameters provided by the job template, those updated parameters will override the existing parameters provided by the job template for that job.
You can also create jobs from job templates with Fleet Hub web applications. For information about creating jobs in Fleet Hub, see Working with job templates in Fleet Hub for AWS IoT Device Management.
Delete a job template
To delete a job template, first go to the Job templates hub of
the AWS IoT console
Note
A deletion is permanent and the job template no longer appears on the Custom templates tab.