File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ module "static_site_hosting" {
105
105
| [ aws_s3_bucket_versioning.logs] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
106
106
| [ aws_s3_bucket_versioning.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_versioning ) | resource |
107
107
| [ aws_s3_bucket_website_configuration.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration ) | resource |
108
+ | [ aws_s3_object.static_site_index] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_object ) | resource |
108
109
| [ aws_caller_identity.current] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity ) | data source |
109
110
| [ aws_canonical_user_id.current] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/canonical_user_id ) | data source |
110
111
| [ aws_route53_zone.static_site] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone ) | data source |
Original file line number Diff line number Diff line change @@ -56,3 +56,13 @@ resource "aws_s3_bucket_policy" "static_site" {
56
56
bucket = aws_s3_bucket. static_site . id
57
57
policy = local. static_site_bucket_policy
58
58
}
59
+
60
+ resource "aws_s3_object" "static_site_index" {
61
+ bucket = aws_s3_bucket. static_site . id
62
+ key = " index.html"
63
+ content = local. project_name
64
+
65
+ lifecycle {
66
+ prevent_destroy = true
67
+ }
68
+ }
You can’t perform that action at this time.
0 commit comments