This repository was archived by the owner on Oct 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
115 lines (96 loc) · 2.56 KB
/
Copy pathvariables.tf
File metadata and controls
115 lines (96 loc) · 2.56 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
variable "default_tags" {
type = map(string)
default = {
deployed_by = "terraform"
stack = "infra"
module_github_repo = "https://github.com/OpenClassrooms/terraform-aws-s3-bucket-module"
}
}
variable "bucket_name" {
description = "The name of the bucket"
default = "hello"
}
variable "bucket_acl" {
description = "The bucket ACL"
default = "private"
}
variable "bucket_versioning" {
description = "The bucket versioning"
type = bool
default = false
}
variable "bucket_lifecycle_configuration_rules" {
description = "The bucket lifecycle configuration rules"
#type = map(map(any))
default = []
}
variable "bucket_policy" {
description = "The bucket policy"
#type = map(string)
default = {}
}
variable "bucket_cors_rules" {
description = "The bucket cors rules"
#type = bool
default = {}
}
variable "bucket_website_cors_rules" {
description = "default website cors rules"
type = map(any)
default = {}
}
variable "bucket_website" {
description = "The bucket website"
type = bool
default = false
}
variable "bucket_website_index_document" {
description = "default website index document"
default = "index.html"
}
variable "bucket_website_error_document" {
description = "default website error document"
default = "error.html"
}
variable "bucket_website_routing_rules" {
description = "default website routing rules"
type = any
default = {}
}
variable "tags" {
description = "The tags to apply"
type = map(string)
default = {}
}
variable "environment_variables" {
description = "Environment variables for lambda function"
default = {}
type = map(any)
}
variable "bucket_ownership_owner_prefered" {
description = "BucketOwnerPreferred value"
type = bool
default = true
}
variable "aws_region" {
description = "The AWS region to create the infrastructure in"
default = "eu-west-3"
}
variable "bucket_role" {
description = "Do you want to attach a role to your bucket?"
type = map(any)
default = {}
}
variable "sqs_enabled" {
description = "Do you want your s3 send event in a SQS message"
type = bool
default = false
}
variable "sqs_queues_config" {
description = "The SQS queues configs"
default = {}
}
variable "create_public_access_block" {
description = "Do you want to create public_access_block object. Avoid bc break for existing buckets (set it to false for buckets under or equals to 0.9.16)"
default = true
}