Requester Pays
Making the people who download from a bucket pay for the requests and data transfer, and its rules.
What it is
Normally the bucket owner pays for everything about a bucket: the storage, the requests and the data transfer when people download objects. That's a problem when a huge dataset is shared with others: every download they make lands on the owner's bill.
With a Requester Pays bucket, the requester pays for the requests and the data downloaded, while the owner still pays for storage.
How it works
- The owner turns on Requester Pays in the bucket's properties.
- Requesters must be authenticated in AWS, so AWS knows whom to bill. Anonymous access isn't allowed.
- Each request must say the requester accepts the charges: the
x-amz-request-payer: requesterheader (or--request-payer requesterin the CLI). Without it, the request fails. - It's helpful for sharing large datasets with other accounts, such as genomics data, satellite images or public research datasets.
If the requester assumes a role in the bucket owner's account, the owner's account pays, since the request comes from the owner's own account.
Real-world examples
- A research institute publishes 500 TB of genome data. Universities around the world download it, and each pays for its own transfer.
- A data vendor shares daily market files with customers' AWS accounts without paying for their downloads.
Exam tips
- "Share a large dataset with other accounts; they should pay for downloads" → Requester Pays.
- "Requester Pays and anonymous users" → not allowed; requesters must be authenticated.
Common traps
- "Requester Pays makes the requester pay for storage." The owner still pays storage.
- "Requester Pays for a public website." Anonymous visitors can't use it.
Check yourself
Turning Requester Pays on is one click; testing it properly needs a second AWS account. Instead:
Turn on Requester Pays for the bucket. Partners then pay for their requests and downloads, and must send the request-payer header; the company only pays for storage.
Requester Pays doesn't allow anonymous requests, and website visitors aren't authenticated AWS users. Serve public content from a bucket without Requester Pays.