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년 전1186회 조회
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년 전

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

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

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

관련 콘텐츠