Complete the code to upload a file to an S3 bucket using AWS CLI.
aws s3 cp myfile.txt s3://[1]/The command uploads myfile.txt to the S3 bucket named mybucket.
Complete the code to download a file named report.pdf from an S3 bucket.
aws s3 cp s3://mybucket/[1] ./The command downloads the file report.pdf from the bucket mybucket to the current folder.
Fix the error in the code to upload a file to S3 using the AWS SDK for Python (boto3).
s3_client.upload_file('data.csv', [1], 'data.csv')
The bucket name must be a string in quotes. Using 'mybucket' is correct.
Fill both blanks to download an object from S3 using boto3 and save it locally.
s3_client.[1](Bucket='mybucket', Key='image.png', Filename=[2])
The method download_file downloads the object. The local filename to save is 'local_image.png'.
Fill all three blanks to upload a file to S3 with public read access using boto3.
s3_client.[1](Filename=[2], Bucket=[3], Key='public_file.txt', ExtraArgs={'ACL': 'public-read'})
The upload_file method uploads the file. The filename and bucket name must be strings with quotes.