Skip to content

Commit d127f7b

Browse files
committed
update README.md
1 parent abd72bc commit d127f7b

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This module has a few dependencies:
6969

7070

7171
Here are some examples of how you can use this module in your inventory structure:
72-
### Basic Bucket
72+
### Default Bucket
7373
```hcl
7474
module "s3_bucket" {
7575
source = "clouddrove/s3/aws"
@@ -161,6 +161,28 @@ data "aws_iam_policy_document" "default" {
161161
}
162162
```
163163

164+
### Cors Bucket
165+
```hcl
166+
module "s3_bucket" {
167+
source = "./../../"
168+
169+
name = "clouddrove-secure-bucket"
170+
environment = "test"
171+
attributes = ["private"]
172+
label_order = ["name", "environment"]
173+
174+
versioning = true
175+
acl = "private"
176+
cors_rule = [{
177+
"allowed_headers" : ["*"]
178+
allowed_methods = ["PUT", "POST"],
179+
allowed_origins = ["https://s3-website-test.hashicorp.com"],
180+
expose_headers = ["ETag"],
181+
max_age_seconds = 3000 }]
182+
}
183+
184+
```
185+
164186

165187

166188

0 commit comments

Comments
 (0)