Skip to content

Cannot locate ACM for Nitro Enclaves AMI using aws cli

0

Running the command with a specific image id works:

aws ec2 describe-images --image-id ami-01c4415fd6c2f0927 --region us-west-2 --query 'sort_by(Images, &CreationDate)[-1].{Name: Name, ImageId: ImageId, CreationDate: CreationDate, Owner:OwnerId}' --output json --region us-west-2 --profile <profile-name>

Outputs:

{ "Name": "ACM-For-Nitro-Enclaves-1-0-2_ 2021-04-29T21-09-41.751Z-3f5ee4f8-1439-4bce-ac57-e794a4ca82f9-ami-028ce88e069714286.4", "ImageId": "ami-01c4415fd6c2f0927", "CreationDate": "2021-04-30T00:01:19.000Z", "Owner": "679593333241" }

However when I try to perform a query it does not work

aws ec2 describe-images --owners 679593333241 --filters "Name=name,Values=ACM-For-Nitro-Enclaves*" --region us-west-2 --query 'Images[*].[ImageId]' --output json --region us-west-2 --profile <profile-name>

AWS has a special service amsskms cli however I cannot get it for some reason.

https://docs.aws.amazon.com/managedservices/latest/userguide/find-ami.html

How can I query the ACM-For-Nitro-Enclaves AMIs properly ?

asked 2 years ago249 views

1 Answer
1

Hello.

When I set "--include-deprecated" and "--include-disabled" in the command options and executed it, the AMI was displayed.
These options allow you to display obsolete or disabled AMIs.

aws ec2 describe-images --owners 679593333241 --filters "Name=name,Values=ACM-For-Nitro-Enclaves*" --region us-west-2 --query 'Images[*].[ImageId]' --output json --include-deprecated --include-disabled
[
    [
        "ami-05421ae6be0ecba36"
    ],
    [
        "ami-01c4415fd6c2f0927"
    ],
    [
        "ami-031a76fec7387f3f5"
    ]
]

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-images.html

You can select an AMI from the marketplace by searching by AMI ID from the EC2 startup screen.
"ami-05421ae6be0ecba36" and "ami-01c4415fd6c2f0927" seemed usable.

a

a

Or you may want to install Nitro Enclaves by following the steps in the document below.
https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.