CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > How to > How to share AMI with other AWS accounts?

How to share AMI with other AWS accounts?

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Last updated: July 1, 2026 ยท 2 min read ยท 0 Comments
Share: in X
cloud 709107 640

Overview

Using Organization service in AWS is quite common if you have multi-team/environment architecture. Most of the time we make our deployment environments like staging and production identical so that we can use the exact same sort of configurations for all and it makes DevOps’s life easier. Hence, in this post, we will learn to share the AMI with another account so that we can use the same AMI for our other Organization account as well.

Let’s say you have an AWS account for staging and another for production. You’ve created an AMI for microservice for your staging environment and you want to use the same AMI for your production microservices.

In this case, if you are smart ๐Ÿ™‚ Developer or DevOps Engineer you don’t want to create an AMI for production microservices again. Instead, you will try to find a solution to use an existing AMI that you have used for your staging account and will use that AMI for the production account.

Prerequisite

  • You must have an account number with whom you want to share your AMI.

Steps to share

  1. Login to your AWS console
  2. Make sure you are in the correct Region.
  3. Search EC2 service and Click on AMI (You can find it on the left side under Images section)
  4. Select the correct AMI that you want to share with another account.
  5. On the bottom side click on the Permissions tab and click on the Edit AMI permissions button.
edit ami permissions
  1. Click on this button, a Share AMI with AWS account popup will be displayed.
share ami with aws account
  1. Add the account number to whom you want to share and click on the Share AMI button.

Now, you have successfully shared AMI another account you have provided.

Let’s verify whether the AMI is shared with the new account or not.

Steps to verify

  1. Login to your new account using the AWS console.
  2. Select EC2 service.
  3. Go AMI that can be found under Images section.
  4. The default filter would be Owned by me. Hence, you can’t see the AMI you shared here.
  5. You need to change it to Private images. The AMI you just shared will be listed here.

Congrats. You are now able to share AMI with another account.

Related Posts:

  • How to Define FeignClient URL in Spring Boot for…
  • Monolithic and Microservices Architecture
  • Servlet Life Cycle
  • Pagination and Sorting in Spring Boot
  • How to Read AWS Secrets Manager in Spring Boot…
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
Tags:awsclouddevops
Was this article helpful?
โ† Previous ArticleHow to use self-signed SSL certificate in Spring Boot application?
Next Article โ†’How to get AWS Region in Cloudformation template?

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to implement Passwordless Authentication in Spring Boot: A Step-by-Step Guide
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Linkedin

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
ยฉ 2026 CoderSathi. All rights reserved. Privacy Policy ยท Sitemap