S3 Cross-Origin Resource Sharing (CORS)
Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain.
Example scenarios:
-
Allow JavaScript on the web pages that are stored in a bucket to be able to make authenticated GET and PUT requests against the same bucket by using the Amazon S3's API endpoint for the bucket.
-
You host a web font from your S3 bucket. Browsers require a CORS check (also referred as a preflight check) for loading web fonts.
Cross Region Replication (CRR)
-
CRR allows to automatically replicate data across AWS regions.
-
Every object uploaded to an S3 bucket is replicated to a destination bucket, along with metadata and ACLs associated with the object.
-
Any change to the underlying data, metadata, or ACLs on the object would trigger a new replication.
-
You can either choose to replicate all objects or just a subset of objects by specifying prefixes.
-
Existing data in the bucket prior to enabling CRR is not replicated.
-
You may use S3’s COPY API to copy the existing data.
-
You can configure separate lifecycle rules on the source and destination buckets.
-
Deleting a file in bucket will delete in the replication bucket. However Undo Delete is not replicated.
-
Cannot replicate to more than one destination in cross-region replication.
-
Can’t use cross-region replication to replicate within same region.
-
You enable CRR configuration on source bucket by specifying a destination bucket in a different region.
-
You can use either the Management Console, the REST API, the AWS CLI, or the AWS SDKs to enable CRR.
-
Versioning must be turned on for both the source and destination buckets to enable CRR.
-
Can use CRR to provide lower-latency data access in different geographic regions. CRR can help if you have a compliance requirement to store copies of data hundreds of miles apart.
-
Pricing: You pay the Amazon S3 charges for storage, requests, and inter-region data transfer for the replicated copy of data.
- heartin's blog
- Log in or register to post comments
Recent comments