0

Is it somewhat possible to have a file containing ignored files and folders during uploading items through AWS CLI.

It has an --exclude flag like mentioned here. However, the concept I seek is something like .gitignore or .dockerignore file rather than enlisting with a flag.

vahdet
  • 6,357
  • 9
  • 51
  • 106

2 Answers2

0

I know it's not exactly what you are looking for but you could set an alias in your ~/.bash_profile something like:

alias s3_cp=`aws s3 cp --exclude "yadda, yadda, yadda"`

This would at least reduce the need to type them every time, even though it isn't in a concise file.

Edit: Here is a link that shows it doesn't look like the base config file supports what you are looking for. https://docs.aws.amazon.com/cli/latest/topic/s3-config.html

CwakrJax
  • 23
  • 6
0

No, there is no in-built capability within the AWS Command-Line Interface (CLI) to support .ignore file capabilities.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470