Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How am I supposed to get the owner id of an aws market place ami?

Im using terraform to get the official centos ami:

data "aws_ami" "centos" {
  most_recent = true
  owners = ["679593333241"] # Centos.org
  filter {
    name   = "name"
    values = ["CentOS Linux 7 x86_64 HVM EBS 1708_01-*"]
  }
}

I need the owner ID and the way I found it in this case was to aimlessly google until some article had it (they didn't say how they got it).

I can't find the owner ID on the ami's market place page.

If I launch the ami through it's market place page the ec2 instance it creates actually has my personal id set for the instance's "owner" field- so I can't launch an ec2 instance, check the owner and get it that way either.

Why is this so impossible to get? I must be missing something obvious.

like image 490
red888 Avatar asked Nov 24 '17 06:11

red888


People also ask

How do I find my AWS owner ID?

Sign in to the AWS Management Console as a federated user with an IAM role. In the Amazon S3 console, choose a bucket name to view details about a bucket. Choose Permissions, and then choose Access Control List. At the top of the page, under Access for bucket owner, the canonical user ID for the AWS account appears.


1 Answers

You don't necessarily need the owner ID but it is obviously a good idea to include to ensure you are getting the AMI you expect.

Given that you know the trusted owner up-front, the simple way to find the owner ID is to look in the AMIs table in the AWS console.

From the AWS console, navigate to EC2 > Images > AMIs. Select the "Public Images" filter from the dropdown on the left of the search box. You can then search for any AMI you want, and the Owner value is shown in the table:

enter image description here

like image 135
duncanhall Avatar answered Sep 22 '22 13:09

duncanhall