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 回答
1
已接受的回答

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
专家
mhjwork
已回答 1 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则