AWS Lightsail plugin not found when using push-container-image

0

I am trying to push a docker image to an AWS Lightsail container using the AWS CLI with the Lightsail plugin.

When I do the following:

aws lightsail push-container-image --service-name XXXX --image YYYYY --label latest

I get:

The Lightsail Control (lightsailctl) plugin was not found. To download and install it, see https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-install-software.

However, when I do the following:

aws lightsail push-container-image --service-name XXXX --image YYYYY

aws lightsail push-container-image --service-name XXXX --label YYYYY

aws lightsail push-container-image --label XXXX --image YYYYY

I get:

`usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run:

aws help aws <command> help aws <command> <subcommand> help

aws.exe: error: the following arguments are required: --service-name`

When I do this:

aws lightsail push-container-image --service-name datafli --image yshimizu14/doc_proceffssor:aws_latest --label latest --bogus what

I get:

Unknown options: --bogus,what

AWS and Lightsail are clearly installed, but for some reason push-container-image it doesn't want to take a third argument. Any ideas as to why?

AWS CLI version: aws-cli/2.4.15 Python/3.8.8 Windows/10 exe/AMD64 prompt/off

已提问 2 年前1152 查看次数
1 回答
0

Hi, were you able to resolve this issue with AWS CLI invoking lightsailctl plugin?

Is lightsailctl in your PATH?

You can check like this (assuming from your post that you're on Windows):

where lightsailctl

If it isn't in the PATH, it is likely you need to try again and follow instructions here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-install-software

To summarize, you will end up with lightsailctl.exe executable stored in some directory on your PC. Let's say it is in C:\Lightsail\directory. Ensure it is added your PATH. And then do this check:

> where lightsailctl
C:\Lightsail\lightsailctl.exe

If the check works, your first command should start working.

AWS
审核人员
已回答 2 年前

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

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

回答问题的准则