Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
clouddrove-ci committed Jul 14, 2021
1 parent abd72bc commit d127f7b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ This module has a few dependencies:


Here are some examples of how you can use this module in your inventory structure:
### Basic Bucket
### Default Bucket
```hcl
module "s3_bucket" {
source = "clouddrove/s3/aws"
Expand Down Expand Up @@ -161,6 +161,28 @@ data "aws_iam_policy_document" "default" {
}
```

### Cors Bucket
```hcl
module "s3_bucket" {
source = "./../../"
name = "clouddrove-secure-bucket"
environment = "test"
attributes = ["private"]
label_order = ["name", "environment"]
versioning = true
acl = "private"
cors_rule = [{
"allowed_headers" : ["*"]
allowed_methods = ["PUT", "POST"],
allowed_origins = ["https://s3-website-test.hashicorp.com"],
expose_headers = ["ETag"],
max_age_seconds = 3000 }]
}
```




Expand Down

0 comments on commit d127f7b

Please sign in to comment.