Use the ec2-auto-recovery.json
template to launch an EC2 instance with auto-recovery. If the instance fails it will be replaced automatically. All data stored on EBS volumes will still be available. The public and private IP address won't change. Auto-recovery does only work inside of a single availability zone (AZ).
- EC2: virtual server
- CloudWatch: monitors the EC2 instance and triggers auto-recovery if necessary
- Download the template ec2-auto-recovery.json
- Open AWS CloudFormation within the Management Console: https://console.aws.amazon.com/cloudformation.
- Create a new stack by clicking on the Create Stack button.
- Select Upload a template to Amazon S3 and upload the template
ec2-auto-recovery.json
. - Click Next to proceed with the next step of the wizard.
- Specify a name and all parameters for the stack.
- Click Next to proceed with the next step of the wizard.
- Click Next to skip the Options step of the wizard.
- Check the I acknowledge that this template might cause AWS CloudFormation to create IAM resources. checkbox.
- Click Create to start the creation of the stack.
- Wait until the stack reaches the state CREATE_COMPLETE
- Grab the public IP address of the EC2 instance from the Outputs tab of your stack.
Do you need help?