Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
The cli for aws is blocking with update-function-code

I have a script to update lambda code from the CLI. It involves several steps:

## prepare code
aws lambda update-function-code --function-name my-function --zip-file fileb://my-file --region eu-west-1
## execute code: aws lambda invoke..

My problem is that after executing update-function-code, the cli waits for an enter key press, while I don't really care about the result and I would like to go on to the execution.

I've tried different things that haven't worked: Non interactive mode:

bash -c `aws lambda...`

Piping enter to the function:

printf '\n' | aws lambda...

Any idea?

My aws cli version is 2.0.12

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It is being caused by AWS CLI v2 using a 'pager', which is a different behaviour from v1.

From Controlling command output from the AWS CLI - How to set the output’s default pager program :

The following example sets the default to disable the use of a pager in the config file:

[default]
cli_pager=
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda