V
V
Vadim2019-05-20 19:21:25
Amazon Web Services
Vadim, 2019-05-20 19:21:25

What is the best way to manage backup and restore volume snapshots for AWS EC2 generated by LifeCycle Manager?

Hello,
please advise what practices are there to make it easier to restore EC2 from EBS Snapshot if the instance crashes? Is it possible to somehow attach labels to this EBS snapshot, which will contain the IP Address and DNS name of the instance from which they were created? Through policy or roles?
best regards,
Vadim

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Shumov, 2019-05-20
@inoise

Your best bet is to use the ec2 autoscaling group. Close ALB and forget about problems

E
Eugene, 2019-05-23
@yellowmew

Vadim
1. Backup of virtual machines is AMI (in principle, the same eggs, only on the side: EBS snapshots + machine configuration packaged and registered in the AMI space of your account)
If you want to make a full backup of the machine, do AMI and not EBS snapshot. In the AMI process, it’s quite possible to tag yourself.
The approach you need is to master the AWS CLI for creating AMIs and tagging them. The script will be simple.
You can stuff anything into the tags, including the maiden name of the mother of the admin who launched the instance.
Put in the scheduler the launch of removing AMIs from all the instances you need and you will have a production backup with little money. Remember that removing AMI is not always possible without turning off the machine - be careful with this.
2. If DNS records and IP addresses are important to you, you keep a pseudo-static infrastructure in the cloud. Figuratively speaking, you pee against the wind, so you have such problems and arise.
149686259319835867.jpgThis is your fried cock technical debt and he is already starting to get close to your ass, judging by your questions.
The correct approach from the point of view of AWS is dynamics, but if you are going to shoot yourself in the foot further, your way out is autoconfiguration (anything, even scripts in the userdata, even ansible,chef,puppet,etc) of a static address and DNS name after the machine starts . Data about IP and others can be taken via describe-tags on AMI from the same aws cli

J
jazzl0ver, 2019-05-24
@jazzl0ver

Script to backup EC2 instances to AMI:
https://github.com/jazzl0ver/aws-missing-tools/tre...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question