AWS CloudFormation
User Guide (Version )

AWS::S3::Bucket CorsConfiguration

Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing in the Amazon Simple Storage Service Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "CorsRules" : [ CorsRule, ... ] }

Properties

CorsRules

A set of origins and methods (cross-origin access that you want to allow). You can add up to 100 rules to the configuration.

Required: Yes

Type: List of CorsRule

Update requires: No interruption

On this page: