Creating AMI, Mount EBS, Migrate AMI
Creating AMI, Mount EBS, Migrate AMI
Then, image is created by putting image name, image description and enable no reboot
respectively.
Go to Images:
In AMIs, the AMI we created will be shown with name, id status, etc.
2. A. EBS volume increase and mount on Amazon Linux2 AMI
Amazon Linux2 AMI instance is launched and AMI is created as earlier respectively.
Then, to modify the volume, go to EBS and choose the volume amount as per your wish
to increase the volume.
It will take some time to modify volume as volume is increased.
Then after some time, the volume state will be in use (optimizing) and the green light
status will be seen.
To verify the file system for each volume, the instance is connected using the command
(df –h)
To check whether the volume has a partition that must be extended, use the command
(lsblk)
(df –h)
To check whether the volume has a partition that must be extended, use the command
(lsblk)
After that the size changed to 9.0G in /dev/xvda1 which was 8.0GB earlier.
E. Migrate snapshot
Launch instance as earlier and create AMI
Go-to snapshot section and click action dropdown
Click Modify Permission
Give AWS account number of the person or other member and choose public or private
for now private is chosen and add permission and save
Then go-to the other AWS account number and can view that snapshot in the private
snapshot section.