Checking AMI ID for Datasync VM

0

Hello everyone,

I want to launch an Ec2 instance as a Datasync agent with the relevant AMI ID. However, when I enter the command "aws ssm get-parameter --name /aws/service/datasync/ami --region ap-south-1" to check the AMI details, I am getting the error "An error occurred (ParameterNotFound) when calling the GetParameter operation".

Should I be creating a parameter in Session Manager for this? I do not the AMI ID for entering in the 'Value" field under "Parameter Store".

I have even checked with the command, " aws ec2 describe-images --owners amazon --filters "Name=name,Values=amzn-ami-hvm-????.??.?.-x86_64-gp2" --query 'Images[].[CreationDate,ImageId]' --output table --region ap-south-1". However, I cannot identify which is the AMI ID for using Datasync VM on EC2

How to identify which AMI to use for an EC2 instance that acts as Datasync Agent?

1 Answer
1
Accepted Answer

Are you able to check that you don't have some sort of SCP that prevents you working in the ap-south-1 region, or with SSM in general? I've just tried the command you used, and received the following:

prompt: ~ % aws ssm get-parameter --name /aws/service/datasync/ami --region ap-south-1
{
    "Parameter": {
        "Name": "/aws/service/datasync/ami",
        "Type": "String",
        "Value": "ami-0570b524b979c5403",
        "Version": 61,
        "LastModifiedDate": "2023-05-04T14:35:06.205000+01:00",
        "ARN": "arn:aws:ssm:ap-south-1::parameter/aws/service/datasync/ami",
        "DataType": "text"
    }
}
AWS
EXPERT
mhjwork
answered 10 months ago
  • Thanks for the reply. I tried with multiple terminal emulators & finally was able to execute the command with Mobaxterm. I was able to fetch the AMI details.

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.

Guidelines for Answering Questions