-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.yaml
97 lines (84 loc) · 2.43 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name : Terraform gcp storage
# License of this project
license: "APACHE"
# Canonical GitHub repo
github_repo: clouddrove/terraform-gcp-storage
# Badges to display
badges:
- name: "Terraform"
image: "https://img.shields.io/badge/Terraform-v1.1.7-green"
url: "https://www.terraform.io"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-gcp-storage/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-gcp-storage/actions/workflows/tfsec.yml"
- name: "static-checks"
image: "https://github.com/clouddrove/terraform-gcp-storage/actions/workflows/terraform.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-gcp-storage/actions/workflows/terraform.yml"
# description of this project
description: |-
Terraform module to create default storage bucket with.
# extra content
include:
- "terraform.md"
# How to use this project
# How to use this project
usage: |-
Here are some examples of how you can use this module in your inventory structure:
### Default Bucket
```hcl
module "bucket" {
source = "clouddrove/storage/google"
version = "1.0.0"
name = "storage-bucket"
environment = "test-main-bukcet"
label_order = ["name", "environment"]
location = "US"
project_id = "clouddrove"
#website
website = {
main_page_suffix = "index.html"
not_found_page = "404.html"
}
#logging
logging = {
log_bucket = module.bucket_logs.bucket.id
log_object_prefix = "gcs-log"
}
#cors
cors = [{
origin = ["http://image-store.com"]
method = ["GET", "HEAD", "PUT", "POST", "DELETE"]
response_header = ["*"]
max_age_seconds = 3600
}]
# versioning
versioning = true
#lifecycle_rules
lifecycle_rules = [{
action = {
type = "SetStorageClass"
storage_class = "NEARLINE"
}
condition = {
age = 60
created_before = "2018-08-20"
with_state = "LIVE"
matches_storage_class = ["STANDARD"]
num_newer_versions = 10
custom_time_before = "1970-01-01"
days_since_custom_time = 1
days_since_noncurrent_time = 1
noncurrent_time_before = "1970-01-01"
}
}]
}
```