Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws ecr-public not working #5895

Closed
3 of 5 tasks
gileisbruch opened this issue Jan 24, 2021 · 3 comments
Closed
3 of 5 tasks

aws ecr-public not working #5895

gileisbruch opened this issue Jan 24, 2021 · 3 comments
Assignees
Labels
api-version closing-soon This issue will automatically close in 4 days unless further comments are made. ecr-public guidance Question that needs advice or information.

Comments

@gileisbruch
Copy link

gileisbruch commented Jan 24, 2021

Confirm by changing [ ] to [x] below:

Issue is about usage on:

  • Service API : I want to do X using Y service, what should I do?
  • CLI : passing arguments or cli configurations.
  • Other/Not sure.

Platform/OS/Hardware/Device
I'm running on Windows PowerShell
output from aws -v:
aws-cli/2.1.2 Python/3.7.7 Windows/10 exe/AMD64

Describe the question
I am not able to login to push an image to a public repository.
I was able to login and push to a private repository. It seems that aws ecr-public is not a real command, the way aws ecr is for private repositories.

When I run aws ecr-public get-login-password
the result is

`PS C:\Users\gilei> aws ecr-public get-login-password

usage: aws [options] [ ...] [parameters]
To see help text, you can run:

aws help
aws help
aws help

aws: error: argument command: Invalid choice, valid choices are:

accessanalyzer | acm
acm-pca | alexaforbusiness
amplify | apigateway
apigatewaymanagementapi | apigatewayv2
appconfig | appflow
application-autoscaling | application-insights
appmesh | appstream
appsync | athena
autoscaling | autoscaling-plans
backup | batch
braket | budgets
ce | chime
cloud9 | clouddirectory
cloudformation | cloudfront
cloudhsm | cloudhsmv2
cloudsearch | cloudsearchdomain
cloudtrail | cloudwatch
codeartifact | codebuild
codecommit | codeguru-reviewer
codeguruprofiler | codepipeline
codestar | codestar-connections
codestar-notifications | cognito-identity
cognito-idp | cognito-sync
comprehend | comprehendmedical
compute-optimizer | connect
connectparticipant | cur
databrew | dataexchange
datapipeline | datasync
dax | detective
devicefarm | directconnect
discovery | dlm
dms | docdb
ds | dynamodb
dynamodbstreams | ebs
ec2 | ec2-instance-connect
ecr | ecs
efs | eks
elastic-inference | elasticache
elasticbeanstalk | elastictranscoder
elb | elbv2
emr | es
events | firehose
fms | forecast
forecastquery | frauddetector
fsx | gamelift
glacier | globalaccelerator
glue | greengrass
groundstation | guardduty
health | honeycode
iam | identitystore
imagebuilder | importexport
inspector | iot
iot-data | iot-jobs-data
iot1click-devices | iot1click-projects
iotanalytics | iotevents
iotevents-data | iotsecuretunneling
iotsitewise | iotthingsgraph
ivs | kafka
kendra | kinesis
kinesis-video-archived-media | kinesis-video-media
kinesis-video-signaling | kinesisanalytics
kinesisanalyticsv2 | kinesisvideo
kms | lakeformation
lambda | lex-models
lex-runtime | license-manager
lightsail | logs
machinelearning | macie
macie2 | managedblockchain
marketplace-catalog | marketplace-entitlement
marketplacecommerceanalytics | mediaconnect
mediaconvert | medialive
mediapackage | mediapackage-vod
mediastore | mediastore-data
mediatailor | meteringmarketplace
mgh | migrationhub-config
mobile | mq
mturk | neptune
network-firewall | networkmanager
opsworks | opsworkscm
organizations | outposts
personalize | personalize-events
personalize-runtime | pi
pinpoint | pinpoint-email
pinpoint-sms-voice | polly
pricing | qldb
qldb-session | quicksight
ram | rds
rds-data | redshift
redshift-data | rekognition
resource-groups | resourcegroupstaggingapi
robomaker | route53
route53domains | route53resolver
s3control | s3outposts
sagemaker | sagemaker-a2i-runtime
sagemaker-runtime | savingsplans
schemas | sdb
secretsmanager | securityhub
serverlessrepo | service-quotas
servicecatalog | servicecatalog-appregistry
servicediscovery | ses
sesv2 | shield
signer | sms
snowball | sns
sqs | ssm
sso | sso-admin
sso-oidc | stepfunctions
storagegateway | sts
support | swf
synthetics | textract
timestream-query | timestream-write
transcribe | transfer
translate | waf
waf-regional | wafv2
workdocs | worklink
workmail | workmailmessageflow
workspaces | xray
s3api | s3
ddb | configure
deploy | configservice
opsworks-cm | history
cli-dev | help`

when I run aws ecr get-login-password I successfully get an authorization token that allows me to push to my private repository.

I'm trying to follow directions when I click on "view push commands" from my repository in the ECR console. Thank you in advance for your help

@gileisbruch gileisbruch added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Jan 24, 2021
@gileisbruch
Copy link
Author

I just installed aws cli v1 and the ecr-public commands are working on 1.18.219. this must be an issue with the newest version

@kdaily kdaily self-assigned this Jan 26, 2021
@kdaily kdaily added ecr-public investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Jan 26, 2021
@kdaily
Copy link
Member

kdaily commented Jan 26, 2021

Hi @gileisbruch,

You need at least version 2.1.6 to get this, as it was first released then.

https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst#216

@kdaily kdaily added api-version closing-soon This issue will automatically close in 4 days unless further comments are made. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jan 26, 2021
@kdaily kdaily closed this as completed Jan 27, 2021
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-version closing-soon This issue will automatically close in 4 days unless further comments are made. ecr-public guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants