title: how to copy AMI from one aws account to other aws account?
body: <p>Am trying to copy the custom built ami using packer from one AWS account to another AWS account; however, i was able to copy ami across regions within one account. </p>
  
  <p><code>"builders": [{
      "account_id": "12345678910",
      "s3_bucket": "xyz/xqas/asd",
      "x509_cert_path": "/Users/txyz/packer/certificate.pem",
      "x509_key_path": "/Users/txyz/packer/private-key.pem",
      "type": "amazon-instance",
      "access_key": "{{user</code>access_key<code>}}",
      "secret_key": "{{user</code>secret_key<code>}}",
      "region": "us-east-1",
      "source_ami": "ami-452bd728",
      "instance_type": "r3.xlarge",
      "ssh_username": "ubuntu",
      "ami_name": "packer-test-hvm {{timestamp}}",
      "ami_virtualization_type": "hvm",
      "force_deregister": true,
      "ami_regions": ["us-east-1", "us-west-2"]
    }],</code></p>