Solution
Docs
Pricing
What's New
Library
Builder
CloudAdvisor
Security and compliance
More
Well-Architected
Inventory
Sign In
Free Sign Up
My Saved Presets
You must be logged in to view saved presets
Security Controls
Service Control Policies
Config Rules
CloudWatch Alarms and Event Rules
CloudFormation Guard Rules
Logging & Monitoring Configurations
Backups & DR
Auto Remediation Rules
Conformance Packs
Billing and Cost Management
S3 Bucket Policies
Security Groups & NACLs
IAM Policies
VPC Endpoint Policies
AWS Services
VPC Security Controls
EC2 Security Controls
IAM Security Controls
S3 Security Controls
RDS Security Controls
OpenSearch/Elasticsearch Security Controls
EFS Security Controls
Route53 Security Controls
Amazon DynamoDB & DAX
ECR Security Controls
EMR Security
Lambda Security
CloudFormation Security
CodeX Security Controls
CloudFront Security
AWS Certificate Manager (ACM) Security
Amazon GuardDuty
Amazon Inspector
AWS Security Hub
AWS Network Firewall
Route53 Resolver Security
Amazon Macie
AWS WAF & Shield
AWS Secrets Manager
AWS Systems Manager
AWS KMS
AWS SSO
Load Balancers & Auto Scaling
RDS Event Subscriptions
AWS Resource Access Manager (RAM)
Amazon ECS
Amazon EKS
Amazon API Gateway
AWS AppConfig
Amazon AppFlow
AWS App Mesh
AWS App Runner
AWS AppSync
Application Auto Scaling
Amazon Athena
AWS Batch
AWS Billing Conductor
AWS Clean Rooms
AWS SNS
AWS SQS
AWS Service Discovery
AWS Step Functions
AWS CloudTrail
AWS Config
Amazon EventBridge
AWS CloudWatch
AWS Cognito
Amazon Connect
AWS Glue
AWS Data Pipeline & Data Sync
Amazon Detective
AWS DevOps Guru
Amazon DocumentDB
Amazon ElastiCache
AWS Elastic Beanstalk
Amazon FSx
Amazon MQ
Amazon Prometheus
Amazon Cassandra
Amazon FinSpace
AWS Fault Injection Simulator
Amazon GameLift
AWS Global Accelerator
Amazon Grafana
AWS IoT GreenGrass
AWS IoT Services
AWS Ground Station
Amazon IVS (Interactive Live Streams)
Amazon Kinesis
AWS LakeFormation
Amazon Lookout
Amazon Managed Blockchain
AWS Media Services
AWS Managed Apache Airflow
AWS OpsWorks
AWS Organizations
Amazon Personalize
Amazon QLDB
Amazon Redshift
Amazon Rekognition
AWS Resource Explorer
AWS Resource Groups
Amazon Lex & Alexa
AWS RoboMaker
Amazon SageMaker
AWS Service Catalog
Amazon SES
AWS SimSpace Weaver
AWS Support App
AWS Transfer
AWS X-Ray
AWS Amplify
AWS Appstream
AWS Audit Manager
Amazon Bedrock
AWS Cloud9
AWS CloudHSM
Amazon Neptune
Amazon Quicksight
Reference Guides
AWS Account Setup Guide
EC2 Security Strategy
S3 Security Strategy
Logging & Monitoring Strategy Guide
Configuration Packages
Guided Walkthroughs
Public S3 Bucket CORS Configuration
This template creates a public S3 bucket with two cross-origin resource sharing rules.
CloudFormation
Terraform
S3Bucket
AWS::S3::Bucket
AccelerateConfiguration
AccelerationStatus
Enabled
Suspended
AccessControl
AnalyticsConfigurations
Add AnalyticsConfigurations
BucketEncryption
ServerSideEncryptionConfiguration
Add ServerSideEncryptionConfiguration
BucketName
CorsConfiguration
CorsRules
AllowedHeaders
Add AllowedHeaders
AllowedMethods
Add AllowedMethods
AllowedOrigins
Add AllowedOrigins
ExposedHeaders
Add ExposedHeaders
Id
MaxAge
AllowedHeaders
Add AllowedHeaders
AllowedMethods
Add AllowedMethods
AllowedOrigins
Add AllowedOrigins
ExposedHeaders
Add ExposedHeaders
Id
MaxAge
Add CorsRules
IntelligentTieringConfigurations
Add IntelligentTieringConfigurations
InventoryConfigurations
Add InventoryConfigurations
LifecycleConfiguration
Rules
Add Rules
LoggingConfiguration
DestinationBucketName
LogFilePrefix
MetricsConfigurations
Add MetricsConfigurations
NotificationConfiguration
EventBridgeConfiguration
EventBridgeEnabled
LambdaConfigurations
Add LambdaConfigurations
QueueConfigurations
Add QueueConfigurations
TopicConfigurations
Add TopicConfigurations
ObjectLockConfiguration
ObjectLockEnabled
Enabled
Rule
DefaultRetention
Days
Mode
COMPLIANCE
GOVERNANCE
Years
ObjectLockEnabled
OwnershipControls
Rules
Add Rules
PublicAccessBlockConfiguration
BlockPublicAcls
BlockPublicPolicy
IgnorePublicAcls
RestrictPublicBuckets
ReplicationConfiguration
Role
Rules
Add Rules
Tags
Add Tags
VersioningConfiguration
Status
Enabled
Suspended
WebsiteConfiguration
ErrorDocument
IndexDocument
RedirectAllRequestsTo
HostName
Protocol
http
https
RoutingRules
Add RoutingRules
BucketPolicy
AWS::S3::BucketPolicy
Bucket
PolicyDocument (JSON)
CloudFormation Template
Open in Builder
Deploy to AWS
Share link
Save as Preset
Validate
Share link
Save as Preset
Hide