I have a workflow that lists the files in a particular AWS S3 Bucket using AWS CLI thru the Run Command Tool.
Commands in the BAT file:
cd\
cd [Amazon CLI path]
aws s3 ls [bucket path] > [file destination path] --profile [profile name] --no-verify-ssl
Errors (actually, warnings) generated:
Insecure request warning: Unverified HTTP request is being made to host [host name]. Adding certificate verification is strongly advised.
The workflow works fine, despite the warnings, when I run manually. The problem is, the scheduler is not generating the desired results.
There are 2 ways I am looking to address this, both of which I do not know how:
1. Address the Amazon CLI command, so that the error (warning) will not show
2. Ignore the Run Command Tool error. This seems to be easier, but can it be done?
This is an AWS CLI warning (actually a Python warning triggered by the AWS CLI). The easiest way around this is including a path to a certificate in lieu of your no-verify-ssl tag.
I really dont know the solution for your problem specific problem with cli, but this macro uses python/boto3 library to see what is inside of s3 buckets and move files. Maybe it is a worth try.