This can be only be achieved with using pipes. Try –
aws s3 ls s3://bucket/path/ --recursive | awk '{cmd="aws s3api put-object-acl --acl bucket-owner-full-control --bucket bucket --key "$4; system(cmd)}'
More Related Contents:
- S3 – Access-Control-Allow-Origin Header
- CloudFront + S3 Website: “The specified key does not exist” when an implicit index document should be displayed
- Amazon AWS Route 53 Hosted Zone does not work
- Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy
- How long should I wait after applying an AWS IAM policy before it is valid?
- How to make all Objects in AWS S3 bucket public by default?
- AWS EFS vs EBS vs S3 (differences & when to use?) [closed]
- Multiple Cloudfront Origins with Behavior Path Redirection
- Nginx proxy Amazon S3 resources
- Append data to an S3 object
- Serving a multitude of static sites from a wildcard domain in AWS
- Supporting HTTPS URL redirection with a single CloudFront distribution
- Deploying react-redux app in AWS S3
- AWS CloudFront: Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy
- How list Amazon S3 bucket contents by modified date?
- The AWS Access Key Id does not exist in our records
- AWS S3 display file inline instead of force download
- Difference between upload() and putObject() for uploading a file to S3?
- How do you search an amazon s3 bucket?
- Access AWS S3 from Lambda within VPC
- SSL CERTIFICATE_VERIFY_FAILED in aws cli
- Adding AWS Lambda with VPC configuration causes timeout when accessing S3
- How do I delete a versioned bucket in AWS S3 using the CLI?
- Amazon AWS Filezilla transfer permission denied
- How do I find the total size of my AWS S3 storage bucket or folder?
- How do I set Content-Type when uploading to S3 with AWS CLI?
- How to change content type of Amazon S3 Objects
- AWS Glue output file name
- Get last modified object from S3 using AWS CLI
- Initial setup of terraform backend using terraform