Search code examples
amazon-web-servicesinstanceamazon-ami

aws share AMI then close instance


I have an aws instance running on one account A. Then I wanted to transform everything on that account to another aws account B. Here's what i did, i create an AMI (private) for A and shared it with account B by adding permissions. Then I used the shard AMI created another instance running on account B.

Now is it safe to shut down the running instance on account A? Cause I no longer want to use that account.

Or what further steps do I need?

Thanks,it's really a hurry !


Solution

  • Yes, that's all the steps you need to do. Now you can safely remove the EC2 instance and the AMI from account A, account B won't be affected.