From d127f7bd6a39dc88e7870288219a30c62b27475c Mon Sep 17 00:00:00 2001 From: clouddrove-ci Date: Wed, 14 Jul 2021 14:00:32 +0000 Subject: [PATCH] update README.md --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d262914..e0b0e04 100644 --- a/README.md +++ b/README.md @@ -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" @@ -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 }] +} + +``` +