Skip to content

wildcard argument using docker amazon/aws-cli #6922

Answered by torson
torson asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, this is happening only if I run the command within a bash script. The same command works well when running in a bash shell. How odd.

Workaround for me was to install the awscli with pip3 which is currently still at v1.23.7 and run the cloudfront invalidation command with env which then uses the pip installed awscli instead of the bash alias one:

env aws cloudfront create-invalidation \
        --distribution-id ${CLOUDFRONT_DISTRIBUTION} \
        --paths '/*'

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tim-finnigan
Comment options

@torson
Comment options

@torson
Comment options

Answer selected by torson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants