The cli for aws is blocking with update-function-code

Viewed 534

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

1 Answers
Related