now checks get created and uploaded!
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"terraform_version": "0.11.5",
|
||||
"serial": 6,
|
||||
"serial": 10,
|
||||
"lineage": "91d10fe0-8033-8778-c202-78d5a81632e8",
|
||||
"modules": [
|
||||
{
|
||||
@@ -172,6 +172,44 @@
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_s3_bucket.data": {
|
||||
"type": "aws_s3_bucket",
|
||||
"depends_on": [],
|
||||
"primary": {
|
||||
"id": "data.staging.app.integreatconsult.com",
|
||||
"attributes": {
|
||||
"acceleration_status": "",
|
||||
"acl": "private",
|
||||
"arn": "arn:aws:s3:::data.staging.app.integreatconsult.com",
|
||||
"bucket": "data.staging.app.integreatconsult.com",
|
||||
"bucket_domain_name": "data.staging.app.integreatconsult.com.s3.amazonaws.com",
|
||||
"force_destroy": "false",
|
||||
"hosted_zone_id": "Z3AQBSTGFYJSTF",
|
||||
"id": "data.staging.app.integreatconsult.com",
|
||||
"logging.#": "0",
|
||||
"policy": "{\"Id\":\"Policy1526084187222\",\"Statement\":[{\"Action\":\"s3:GetObject\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Resource\":\"arn:aws:s3:::data.staging.app.integreatconsult.com/*\",\"Sid\":\"Stmt1526084185514\"}],\"Version\":\"2012-10-17\"}",
|
||||
"region": "us-east-1",
|
||||
"replication_configuration.#": "0",
|
||||
"request_payer": "BucketOwner",
|
||||
"server_side_encryption_configuration.#": "0",
|
||||
"tags.%": "0",
|
||||
"versioning.#": "1",
|
||||
"versioning.0.enabled": "false",
|
||||
"versioning.0.mfa_delete": "false",
|
||||
"website.#": "1",
|
||||
"website.0.error_document": "",
|
||||
"website.0.index_document": "index.html",
|
||||
"website.0.redirect_all_requests_to": "",
|
||||
"website.0.routing_rules": "",
|
||||
"website_domain": "s3-website-us-east-1.amazonaws.com",
|
||||
"website_endpoint": "data.staging.app.integreatconsult.com.s3-website-us-east-1.amazonaws.com"
|
||||
},
|
||||
"meta": {},
|
||||
"tainted": false
|
||||
},
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_s3_bucket.invoices": {
|
||||
"type": "aws_s3_bucket",
|
||||
"depends_on": [
|
||||
@@ -369,11 +407,11 @@
|
||||
"type": "aws_caller_identity",
|
||||
"depends_on": [],
|
||||
"primary": {
|
||||
"id": "2018-04-10 06:20:31.972433424 +0000 UTC",
|
||||
"id": "2018-05-12 00:18:13.939881377 +0000 UTC",
|
||||
"attributes": {
|
||||
"account_id": "679918342773",
|
||||
"arn": "arn:aws:iam::679918342773:user/bryce",
|
||||
"id": "2018-04-10 06:20:31.972433424 +0000 UTC",
|
||||
"id": "2018-05-12 00:18:13.939881377 +0000 UTC",
|
||||
"user_id": "AIDAJPUJFTOKO4IRADMV4"
|
||||
},
|
||||
"meta": {},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"terraform_version": "0.11.5",
|
||||
"serial": 6,
|
||||
"serial": 10,
|
||||
"lineage": "91d10fe0-8033-8778-c202-78d5a81632e8",
|
||||
"modules": [
|
||||
{
|
||||
@@ -172,6 +172,40 @@
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_s3_bucket.data": {
|
||||
"type": "aws_s3_bucket",
|
||||
"depends_on": [
|
||||
"data.aws_caller_identity.current"
|
||||
],
|
||||
"primary": {
|
||||
"id": "data.staging.app.integreatconsult.com",
|
||||
"attributes": {
|
||||
"acceleration_status": "",
|
||||
"acl": "private",
|
||||
"arn": "arn:aws:s3:::data.staging.app.integreatconsult.com",
|
||||
"bucket": "data.staging.app.integreatconsult.com",
|
||||
"bucket_domain_name": "data.staging.app.integreatconsult.com.s3.amazonaws.com",
|
||||
"force_destroy": "false",
|
||||
"hosted_zone_id": "Z3AQBSTGFYJSTF",
|
||||
"id": "data.staging.app.integreatconsult.com",
|
||||
"logging.#": "0",
|
||||
"policy": "",
|
||||
"region": "us-east-1",
|
||||
"replication_configuration.#": "0",
|
||||
"request_payer": "BucketOwner",
|
||||
"server_side_encryption_configuration.#": "0",
|
||||
"tags.%": "0",
|
||||
"versioning.#": "1",
|
||||
"versioning.0.enabled": "false",
|
||||
"versioning.0.mfa_delete": "false",
|
||||
"website.#": "0"
|
||||
},
|
||||
"meta": {},
|
||||
"tainted": false
|
||||
},
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_s3_bucket.invoices": {
|
||||
"type": "aws_s3_bucket",
|
||||
"depends_on": [
|
||||
@@ -315,6 +349,29 @@
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_sns_topic_subscription.send_reminders_to_service": {
|
||||
"type": "aws_sns_topic_subscription",
|
||||
"depends_on": [
|
||||
"aws_sns_topic.reminder_topic"
|
||||
],
|
||||
"primary": {
|
||||
"id": "arn:aws:sns:us-east-1:679918342773:reminders-staging:f21bb21a-f5e9-4bce-afa5-7fa5b1ec8581",
|
||||
"attributes": {
|
||||
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-staging:f21bb21a-f5e9-4bce-afa5-7fa5b1ec8581",
|
||||
"confirmation_timeout_in_minutes": "1",
|
||||
"endpoint": "https://staging.app.integreatconsult.com:8443/api/reminders/send",
|
||||
"endpoint_auto_confirms": "true",
|
||||
"id": "arn:aws:sns:us-east-1:679918342773:reminders-staging:f21bb21a-f5e9-4bce-afa5-7fa5b1ec8581",
|
||||
"protocol": "https",
|
||||
"raw_message_delivery": "false",
|
||||
"topic_arn": "arn:aws:sns:us-east-1:679918342773:reminders-staging"
|
||||
},
|
||||
"meta": {},
|
||||
"tainted": false
|
||||
},
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_sqs_queue.integreat-mail": {
|
||||
"type": "aws_sqs_queue",
|
||||
"depends_on": [
|
||||
@@ -346,11 +403,11 @@
|
||||
"type": "aws_caller_identity",
|
||||
"depends_on": [],
|
||||
"primary": {
|
||||
"id": "2018-04-10 05:26:29.468970177 +0000 UTC",
|
||||
"id": "2018-05-12 00:10:04.257096257 +0000 UTC",
|
||||
"attributes": {
|
||||
"account_id": "679918342773",
|
||||
"arn": "arn:aws:iam::679918342773:user/bryce",
|
||||
"id": "2018-04-10 05:26:29.468970177 +0000 UTC",
|
||||
"id": "2018-05-12 00:10:04.257096257 +0000 UTC",
|
||||
"user_id": "AIDAJPUJFTOKO4IRADMV4"
|
||||
},
|
||||
"meta": {},
|
||||
|
||||
Reference in New Issue
Block a user