How to copy files from one S3 bucket to another using wildcard

aws s3 cp s3://bucketname1/prefix1/prefix2/ s3://bucketname2/prefix/ --recursive --exclude "" --include "searchterm*"

See also  How to get the account id of your AWS account