File tree Expand file tree Collapse file tree 2 files changed +54
-17
lines changed Expand file tree Collapse file tree 2 files changed +54
-17
lines changed Original file line number Diff line number Diff line change 1
- # Mac OS Files
2
- .DS_Store
3
-
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
4
2
# Local .terraform directories
5
3
** /.terraform /*
4
+ ** /.terraform.lock.hcl
6
5
7
6
# .tfstate files
8
7
* .tfstate
@@ -24,9 +23,35 @@ override.tf.json
24
23
* _override.tf
25
24
* _override.tf.json
26
25
27
- # Include override files you do wish to add to version control using negated pattern
28
- #
29
- # !example_override.tf
26
+ # IDE Files
27
+ .vscode /
28
+
29
+ # Mac OS files
30
+ .DS_Store
31
+ .AppleDouble
32
+ .LSOverride
33
+ * .zip
34
+ Desktop.ini
35
+
36
+ # Icon must end with two \r
37
+ Icon
38
+
39
+ # Files that might appear in the root of a volume
40
+ .DocumentRevisions-V100
41
+ .fseventsd
42
+ .Spotlight-V100
43
+ .TemporaryItems
44
+ .Trashes
45
+ .VolumeIcon.icns
46
+ .com.apple.timemachine.donotpresent
47
+
48
+ # Directories potentially created on remote AFP share
49
+ .AppleDB
50
+ .AppleDesktop
51
+ Network Trash Folder
52
+ Temporary Items
53
+ .apdisk
30
54
31
- # Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
32
- # example: *tfplan*
55
+ # Thumbnail cache files
56
+ ._ *
57
+ Thumbs.db
Original file line number Diff line number Diff line change @@ -19,13 +19,25 @@ data "aws_caller_identity" "current" {}
19
19
20
20
resource "aws_s3_bucket" "this" {
21
21
bucket = " ${ var . source_zone_name } -redirect"
22
- force_destroy = false
23
- acl = " private "
22
+ force_destroy = true
23
+ }
24
24
25
- website {
26
- error_document = " error.html"
27
- index_document = " index.html"
25
+ resource "aws_s3_bucket_acl" "this" {
26
+ bucket = aws_s3_bucket. this . id
27
+ acl = " private"
28
+ }
29
+
30
+ resource "aws_s3_bucket_website_configuration" "this" {
31
+ bucket = aws_s3_bucket. this . id
32
+
33
+ index_document {
34
+ suffix = " index.html"
35
+ }
36
+
37
+ error_document {
38
+ key = " error.html"
28
39
}
40
+
29
41
}
30
42
31
43
data "aws_iam_policy_document" "s3_this" {
@@ -82,10 +94,10 @@ resource "aws_cloudfront_function" "this" {
82
94
runtime = " cloudfront-js-1.0"
83
95
comment = var. description
84
96
publish = true
85
- code = templatefile (" ${ path . module } /src/index.js.tpl" , {
86
- REDIRECT_URL = var.redirect_url,
87
- REDIRECT_HTTP_CODE = var.redirect_http_code,
88
- })
97
+ code = templatefile (" ${ path . module } /src/index.js.tpl" , {
98
+ REDIRECT_URL = var.redirect_url,
99
+ REDIRECT_HTTP_CODE = var.redirect_http_code,
100
+ })
89
101
}
90
102
91
103
resource "aws_cloudfront_distribution" "this" {
You can’t perform that action at this time.
0 commit comments