EC2 instance stop + AMI creation

Overview

By stopping an EC2 instance before creating an AMI snapshot, you can achieve a safe backup with a consistent state.

This template creates one job workflow that automates the entire process from EC2 instance stop to AMI creation.

Job Workflows Created

Using this template will create the following job workflow.

EC2 Stop and AMI Creation Workflow

Stops the EC2 instance at a specified time and creates an AMI.

Order Job Configuration
1 Trigger Job (Timer Trigger)
2 EC2: Stop Instance
3 EC2: Create AMI

User-Configured Items

  • Group: The group in which to create the job workflow
  • AWS Account: The target AWS account
  • Region: The target region
  • EC2 Instance: The EC2 instance to stop and create the AMI from (specify by ID or tag)
  • AMI Name: The name of the AMI to create
  • AMI Description: A description for the AMI (optional)
  • Generation Count: The number of AMI generations to retain (default: 7)
  • Additional Tags: Tags to add to the AMI (optional)
  • Execution Schedule: The execution time of the workflow
  • Post-process: Post-processing on success or failure for each job (optional)

AI Auto-Configured Items

The following settings are automatically configured by AI. They can be modified from the edit screen after the job workflow is created.

Common to All Jobs

Setting Auto-Configured Value
Workflow Name / Job Name Auto-generated based on target resource and schedule
Timezone User's timezone setting
Skip Dates None (empty)
Status Check (trace_status) Enabled (true)

EC2: Create AMI Job Specific

Setting Auto-Configured Value
Reboot before creating AMI (reboot_instance) Disabled (false)
Add same tags to snapshots (add_same_tag_to_snapshot) Enabled (true)
Recreate if AMI status is failed (recreate_image_if_ami_status_failed) Enabled (true)

AI auto-configured items (such as job names and workflow names) can be modified from the edit screen after the job workflow is created.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request