File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ Available targets:
160
160
| ------| -------------| :----:| :-----:| :-----:|
161
161
| acl | The canned ACL to apply to the S3 bucket | string | ` private ` | no |
162
162
| additional_tag_map | Additional tags for appending to each tag map | map(string) | ` <map> ` | no |
163
+ | arn_format | ARN format to be used. May be changed to support deployment in GovCloud/China regions. | string | ` arn:aws ` | no |
163
164
| attributes | Additional attributes (e.g. ` state ` ) | list(string) | ` <list> ` | no |
164
165
| billing_mode | DynamoDB billing mode | string | ` PROVISIONED ` | no |
165
166
| block_public_acls | Whether Amazon S3 should block public ACLs for this bucket | bool | ` true ` | no |
Original file line number Diff line number Diff line change 4
4
| ------| -------------| :----:| :-----:| :-----:|
5
5
| acl | The canned ACL to apply to the S3 bucket | string | ` private ` | no |
6
6
| additional_tag_map | Additional tags for appending to each tag map | map(string) | ` <map> ` | no |
7
+ | arn_format | ARN format to be used. May be changed to support deployment in GovCloud/China regions. | string | ` arn:aws ` | no |
7
8
| attributes | Additional attributes (e.g. ` state ` ) | list(string) | ` <list> ` | no |
8
9
| billing_mode | DynamoDB billing mode | string | ` PROVISIONED ` | no |
9
10
| block_public_acls | Whether Amazon S3 should block public ACLs for this bucket | bool | ` true ` | no |
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ data "aws_iam_policy_document" "prevent_unencrypted_uploads" {
55
55
]
56
56
57
57
resources = [
58
- " arn:aws :s3:::${ local . bucket_name } /*" ,
58
+ " ${ var . arn_format } :s3:::${ local . bucket_name } /*" ,
59
59
]
60
60
61
61
condition {
@@ -83,7 +83,7 @@ data "aws_iam_policy_document" "prevent_unencrypted_uploads" {
83
83
]
84
84
85
85
resources = [
86
- " arn:aws :s3:::${ local . bucket_name } /*" ,
86
+ " ${ var . arn_format } :s3:::${ local . bucket_name } /*" ,
87
87
]
88
88
89
89
condition {
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ variable "region" {
87
87
description = " AWS Region the S3 bucket should reside in"
88
88
}
89
89
90
+ variable "arn_format" {
91
+ type = string
92
+ default = " arn:aws"
93
+ description = " ARN format to be used. May be changed to support deployment in GovCloud/China regions."
94
+ }
95
+
90
96
variable "acl" {
91
97
type = string
92
98
description = " The canned ACL to apply to the S3 bucket"
You can’t perform that action at this time.
0 commit comments