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

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ