@@ -4,9 +4,29 @@ variable "aws_region" {
44 default = " us-east-2"
55}
66
7- variable "s3_bucket_names" {
8- type = set (string )
9- description = " one or many of your s3 bucket name(s)"
7+ variable "s3_bucket_config" {
8+ type = map (object ({
9+ acl = string
10+ block_public_acls = bool
11+ block_public_policy = bool
12+ restrict_public_buckets = bool
13+ ignore_public_acls = bool
14+ cors_rule_inputs = list (object ({
15+ allowed_headers = list (string )
16+ allowed_methods = list (string )
17+ allowed_origins = list (string )
18+ expose_headers = list (string )
19+ max_age_seconds = number
20+ }))
21+ lifecycle_rule_inputs = list (object ({
22+ enabled = string
23+ abort_incomplete_multipart_upload_days = string
24+ expiration_inputs = list (object ({
25+ days = number
26+ }))
27+ }))
28+ }))
29+ default = null
1030}
1131
1232variable "remote_principals_arns" {
@@ -23,56 +43,4 @@ variable "tags" {
2343variable "role_name" {
2444 type = string
2545 description = " name to give your role that will be able to be assume by remote principal(s)"
26- }
27-
28- variable "acl" {
29- type = string
30- default = " private"
31- description = " The canned ACL to apply."
32- }
33-
34- variable "block_public_acls" {
35- type = string
36- default = true
37- description = " PUT Object calls will fail if the request includes an object ACL."
38- }
39-
40- variable "block_public_policy" {
41- type = string
42- default = true
43- description = " Reject calls to PUT Bucket policy if the specified bucket policy allows public access."
44- }
45-
46- variable "restrict_public_buckets" {
47- type = string
48- default = true
49- description = " Ignore public ACLs on this bucket and any objects that it contains."
50- }
51-
52- variable "ignore_public_acls" {
53- type = string
54- default = true
55- description = " Only the bucket owner and AWS Services can access this buckets if it has a public policy."
56- }
57-
58- variable "lifecycle_rule_inputs" {
59- type = list (object ({
60- enabled = string
61- abort_incomplete_multipart_upload_days = string
62- expiration_inputs = list (object ({
63- days = number
64- }))
65- }))
66- default = null
67- }
68-
69- variable "cors_rule_inputs" {
70- type = list (object ({
71- allowed_headers = list (string )
72- allowed_methods = list (string )
73- allowed_origins = list (string )
74- expose_headers = list (string )
75- max_age_seconds = number
76- }))
77- default = null
7846}
0 commit comments