now checks get created and uploaded!

This commit is contained in:
Bryce Covert
2018-05-11 17:23:17 -07:00
parent 6c014a6b36
commit 88358a7f2a
10 changed files with 246 additions and 159 deletions

View File

@@ -56,6 +56,32 @@ resource "aws_s3_bucket" "invoices" {
}
EOF
}
resource "aws_s3_bucket" "data" {
bucket = "data.${var.stage}.app.integreatconsult.com"
acl = "private"
policy = <<POLICY
{
"Id": "Policy1526084187222",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1526084185514",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::data.${var.stage}.app.integreatconsult.com/*",
"Principal": "*"
}
]
}
POLICY
website {
index_document = "index.html"
}
}
resource "aws_sqs_queue" "integreat-mail" {
name = "integreat-mail-${var.stage}"