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
답변함 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠