You can share an AMI by modifying its launch permissions.
Example (AWS CLI):
aws ec2 modify-image-attribute --image-id ami-0abcdef1234567890 --launch-permission "{\"Add\":[{\"UserId\":\"123456789012\"}]}"
This command shares the AMI with the ID ami-0abcdef1234567890 with the AWS account 123456789012.