Custom Distributor Packages "failed to download installation package"

0

Hi all,

I have been playing with SSM Distributor packages in the hopes of managing various agents across the fleet. I have been able to build / compile a couple of different packages successfully.

Unfortunately when I attempt to deploy them to instances, as per the doco, ie;

aws ssm send-command --document-name "AWS-ConfigureAWSPackage" --instance-ids "i-abcdefghijk" --parameters '{"action":["Install"],"installationType":["Uninstall and reinstall"],"name":["CustomPackage"]}'

I am receiving the following error;

aws ssm get-command-invocation --command-id 1234567-8910-1112-1314-abcdefghi --instance-id i-abcdefghijk
{
    "CommandId": "1234567-8910-1112-1314-abcdefghi",
    "InstanceId": "i-abcdefghijk",
    "Comment": "",
    "DocumentName": "AWS-ConfigureAWSPackage",
    "DocumentVersion": "",
    "PluginName": "configurePackage",
    "ResponseCode": 1,
    "ExecutionStartDateTime": "2020-04-01T04:33:03.700Z",
    "ExecutionElapsedTime": "PT1.75S",
    "ExecutionEndDateTime": "2020-04-01T04:33:04.700Z",
    "Status": "Failed",
    "StatusDetails": "Failed",
    "StandardOutputContent": "",
    "StandardOutputUrl": "",
    "StandardErrorContent": "failed to download installation package reliably, , Get : unsupported protocol scheme \"\"\nfailed to download installation package reliably, , Get : unsupported protocol scheme \"\"\nfailed to download installation package reliably, , Get : unsupported protocol scheme \"\"\n",
    "StandardErrorUrl": "",
    "CloudWatchOutputConfig": {
        "CloudWatchLogGroupName": "",
        "CloudWatchOutputEnabled": false
    }
}

The error occurs on all custom packages for both windows and linux instances. Packages published by AWS still continue to deploy successfully.

Has anyone written any packages and run into similar errors?

RESOLVED - For anyone interested, even though the documentation says otherwise, if you refer to your custom package by its arn rather than the short name you will no longer have the issue. ie,

aws ssm send-command --document-name "AWS-ConfigureAWSPackage" --instance-ids "i-abcdefghijk" --parameters '{"action":["Install"],"installationType":["Uninstall and reinstall"],"name":["arn:aws:ssm:ap-southeast-2:123456789101:document/CustomPackage"]}'

Edited by: beefsupreme on Apr 1, 2020 3:55 PM

질문됨 4년 전974회 조회
1개 답변
0

Hi @beefsupreme,

Thank you for your interest in AWS Systems Manager. We have been able to fix the issue that you have seen when executing Distributor package with short custom name. With this fix, you will be able to install or uninstall your Distributor package using short name or arn with no issues. Please feel free to try again.

Apologies for any inconvenience this may have caused to you. Please do not hesitate to reach out to us at any time.

Sincerely,
Yuting

AWS
답변함 4년 전

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

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

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

관련 콘텐츠