Commit e62303d7 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

Copying the index file

parent 81145f9e
......@@ -7,4 +7,11 @@ module "web_storage" {
# Allow deletion of non-empty bucket
force_destroy = var.force_destroy
}
\ No newline at end of file
}
resource "aws_s3_object_copy" "index" {
bucket = module.web_storage.s3_bucket_id
key = "index.html"
source = "${path.module}/html/index.html"
etag = filemd5("${path.module}/html/index.html")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment