Skip to content
Snippets Groups Projects
Commit 22ccaa7f authored by Omkar Nadkarni's avatar Omkar Nadkarni
Browse files

Upload New File

parent bb76eab3
No related branches found
No related tags found
No related merge requests found
main.tf 0 → 100644
# Terraform configuration
resource "aws_s3_bucket" "s3_bucket" {
bucket = var.bucket_name
acl = "public-read"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::${var.bucket_name}/*"
]
}
]
}
EOF
website {
index_document = "index.html"
error_document = "error.html"
}
tags = var.tags
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment