updated terraform

This commit is contained in:
Bryce
2023-05-24 13:24:39 -07:00
parent aa7f8b183a
commit c5838e5e3a
10 changed files with 907 additions and 4923 deletions

32
terraform/.terraform.lock.hcl generated Executable file → Normal file
View File

@@ -2,20 +2,24 @@
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/aws" {
version = "3.70.0"
version = "4.67.0"
constraints = "~> 4.67"
hashes = [
"h1:E5IKHXzPGGSizZM5rHKzNCzpwQ7lWPXmmJnms82uzDk=",
"h1:jn4ImGMZJ9rQdaVSbcCBqUqnhRSpyaM1DivqaNuP+eg=",
"zh:0af710e528e21b930899f0ac295b0ceef8ad7b623dd8f38e92c8ec4bc7af0321",
"zh:4cabcd4519c0aae474d91ae67a8e3a4a8c39c3945c289a9cf7c1409f64409abe",
"zh:58da1a436facb4e4f95cd2870d211ed7bcb8cf721a4a61970aa8da191665f2aa",
"zh:6465339475c1cd3c16a5c8fee61304dcad2c4a27740687d29c6cdc90d2e6423d",
"zh:7a821ed053c355d70ebe33185590953fa5c364c1f3d66fe3f9b4aba3961646b1",
"zh:7c3656cc9cc1739dcb298e7930c9a76ccfce738d2070841d7e6c62fbdae74eef",
"zh:9d9da9e3c60a0c977e156da8590f36a219ae91994bb3df5a1208de2ab3ceeba7",
"zh:a3138817c86bf3e4dca7fd3a92e099cd1bf1d45ee7c7cc9e9773ba04fc3b315a",
"zh:a8603044e935dfb3cb9319a46d26276162c6aea75e02c4827232f9c6029a3182",
"zh:aef9482332bf43d0b73317f5909dec9e95b983c67b10d72e75eacc7c4f37d084",
"zh:fc3f3cad84f2eebe566dd0b65904c934093007323b9b85e73d9dd4535ceeb29d",
"h1:dCRc4GqsyfqHEMjgtlM1EympBcgTmcTkWaJmtd91+KA=",
"zh:0843017ecc24385f2b45f2c5fce79dc25b258e50d516877b3affee3bef34f060",
"zh:19876066cfa60de91834ec569a6448dab8c2518b8a71b5ca870b2444febddac6",
"zh:24995686b2ad88c1ffaa242e36eee791fc6070e6144f418048c4ce24d0ba5183",
"zh:4a002990b9f4d6d225d82cb2fb8805789ffef791999ee5d9cb1fef579aeff8f1",
"zh:559a2b5ace06b878c6de3ecf19b94fbae3512562f7a51e930674b16c2f606e29",
"zh:6a07da13b86b9753b95d4d8218f6dae874cf34699bca1470d6effbb4dee7f4b7",
"zh:768b3bfd126c3b77dc975c7c0e5db3207e4f9997cf41aa3385c63206242ba043",
"zh:7be5177e698d4b547083cc738b977742d70ed68487ce6f49ecd0c94dbf9d1362",
"zh:8b562a818915fb0d85959257095251a05c76f3467caa3ba95c583ba5fe043f9b",
"zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425",
"zh:9c385d03a958b54e2afd5279cd8c7cbdd2d6ca5c7d6a333e61092331f38af7cf",
"zh:b3ca45f2821a89af417787df8289cb4314b273d29555ad3b2a5ab98bb4816b3b",
"zh:da3c317f1db2469615ab40aa6baba63b5643bae7110ff855277a1fb9d8eb4f2c",
"zh:dc6430622a8dc5cdab359a8704aec81d3825ea1d305bbb3bbd032b1c6adfae0c",
"zh:fac0d2ddeadf9ec53da87922f666e1e73a603a611c57bcbc4b86ac2821619b1d",
]
}

View File

@@ -1,3 +1,11 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.67"
}
}
}
provider "aws" {
access_key = var.aws_access_key_id
secret_key = var.aws_secret_access_key

View File

@@ -0,0 +1,62 @@
[
{
"environment": [
{
"name": "DD_ENV",
"value": "prod"
},
{
"name": "DD_SERVICE",
"value": "solr"
}
],
"essential": true,
"image": "solr",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/solr-prod",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
}
},
"dockerLabels": {
"com.datadoghq.tags.env": "prod",
"com.datadoghq.tags.service": "solr"
},
"mountPoints": [],
"name": "solr",
"portMappings": [
{
"containerPort": 8983,
"hostPort": 8983,
"protocol": "tcp"
}
],
"volumesFrom": [],
"mountPoints": [
{
"sourceVolume": "solr-storage",
"containerPath": "/var/solr",
"readOnly": false
}
]
},
{
"environment": [
{
"name": "DD_API_KEY",
"value": "ce10d932c47b358e81081ae67bd8c112"
},
{
"name": "ECS_FARGATE",
"value": "true"
}
],
"essential": true,
"image": "public.ecr.aws/datadog/agent:latest",
"name": "datadog-agent"
}
]

View File

@@ -1,389 +1,370 @@
{
"version": 3,
"terraform_version": "0.11.5",
"serial": 22,
"lineage": "9b630886-8cee-a57d-c7a2-4f19f13f9c51",
"modules": [
"version": 4,
"terraform_version": "1.4.6",
"serial": 23,
"lineage": "9b630886-8cee-a57d-c7a2-4f19f13f9c51",
"outputs": {
"aws_access_key_id": {
"value": "AKIAISQDBHDDBYVHNXMQ",
"type": "string"
},
"aws_default_region": {
"value": "us-east-1",
"type": "string"
},
"aws_secret_access_key": {
"value": "emIzqz9zW+5WrbJHwc1MI0gSS9IXF5feFFxnQI+7",
"type": "string"
},
"queue_url": {
"value": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"type": "string"
}
},
"resources": [
{
"mode": "data",
"type": "aws_caller_identity",
"name": "current",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"path": [
"root"
],
"outputs": {
"aws_access_key_id": {
"sensitive": false,
"type": "string",
"value": "AKIAISQDBHDDBYVHNXMQ"
},
"aws_default_region": {
"sensitive": false,
"type": "string",
"value": "us-east-1"
},
"aws_secret_access_key": {
"sensitive": false,
"type": "string",
"value": "emIzqz9zW+5WrbJHwc1MI0gSS9IXF5feFFxnQI+7"
},
"queue_url": {
"sensitive": false,
"type": "string",
"value": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod"
}
},
"resources": {
"aws_cloudwatch_event_rule.scheduled_reminders": {
"type": "aws_cloudwatch_event_rule",
"depends_on": [
"aws_iam_role.reminder_send_role"
],
"primary": {
"id": "send-scheduled-emails-prod",
"attributes": {
"arn": "arn:aws:events:us-east-1:679918342773:rule/send-scheduled-emails-prod",
"description": "",
"id": "send-scheduled-emails-prod",
"is_enabled": "true",
"name": "send-scheduled-emails-prod",
"role_arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"schedule_expression": "rate(4 hours)"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_cloudwatch_event_target.sns": {
"type": "aws_cloudwatch_event_target",
"depends_on": [
"aws_cloudwatch_event_rule.scheduled_reminders",
"aws_sns_topic.reminder_topic"
],
"primary": {
"id": "send-scheduled-emails-prod-SendToSNS",
"attributes": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"id": "send-scheduled-emails-prod-SendToSNS",
"input": "",
"input_path": "",
"role_arn": "",
"rule": "send-scheduled-emails-prod",
"target_id": "SendToSNS"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_access_key.app_user": {
"type": "aws_iam_access_key",
"depends_on": [
"aws_iam_user.app_user"
],
"primary": {
"id": "AKIAISQDBHDDBYVHNXMQ",
"attributes": {
"id": "AKIAISQDBHDDBYVHNXMQ",
"secret": "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",
"ses_smtp_password": "AkXuCSGd0AHGdeQiVbLFJRBcZZmgO3od/LySjNbEUSRR",
"status": "Active",
"user": "integreat-prod"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_role.reminder_send_role": {
"type": "aws_iam_role",
"depends_on": [],
"primary": {
"id": "reminder-send-role-prod",
"attributes": {
"arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
"create_date": "2018-04-08T21:29:29Z",
"force_detach_policies": "false",
"id": "reminder-send-role-prod",
"name": "reminder-send-role-prod",
"path": "/",
"unique_id": "AROAJU3XYXVQUHOKPRZD4"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_role_policy_attachment.allow_send": {
"type": "aws_iam_role_policy_attachment",
"depends_on": [
"aws_iam_role.reminder_send_role"
],
"primary": {
"id": "reminder-send-role-prod-20180408212928695300000002",
"attributes": {
"id": "reminder-send-role-prod-20180408212928695300000002",
"policy_arn": "arn:aws:iam::aws:policy/AmazonSNSFullAccess",
"role": "reminder-send-role-prod"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_user.app_user": {
"type": "aws_iam_user",
"depends_on": [],
"primary": {
"id": "integreat-prod",
"attributes": {
"arn": "arn:aws:iam::679918342773:user/integreat-prod",
"force_destroy": "false",
"id": "integreat-prod",
"name": "integreat-prod",
"path": "/",
"unique_id": "AIDAINFBWI2I7A3TKPGW2"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_iam_user_policy_attachment.app_user_policy": {
"type": "aws_iam_user_policy_attachment",
"depends_on": [
"aws_iam_user.app_user"
],
"primary": {
"id": "integreat-prod-20180408212927036600000001",
"attributes": {
"id": "integreat-prod-20180408212927036600000001",
"policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess",
"user": "integreat-prod"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_s3_bucket.invoices": {
"type": "aws_s3_bucket",
"depends_on": [
"data.aws_caller_identity.current"
],
"primary": {
"id": "integreat-mail-prod",
"attributes": {
"acceleration_status": "",
"acl": "private",
"arn": "arn:aws:s3:::integreat-mail-prod",
"bucket": "integreat-mail-prod",
"bucket_domain_name": "integreat-mail-prod.s3.amazonaws.com",
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "integreat-mail-prod",
"logging.#": "0",
"policy": "{\"Statement\":[{\"Action\":\"s3:PutObject\",\"Condition\":{\"StringEquals\":{\"aws:Referer\":\"679918342773\"}},\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ses.amazonaws.com\"},\"Resource\":\"arn:aws:s3:::integreat-mail-prod/*\",\"Sid\":\"AllowSESPuts\"}],\"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.#": "0"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_s3_bucket_notification.mail_bucket_notification": {
"type": "aws_s3_bucket_notification",
"depends_on": [
"aws_s3_bucket.invoices",
"aws_sqs_queue.integreat-mail"
],
"primary": {
"id": "integreat-mail-prod",
"attributes": {
"bucket": "integreat-mail-prod",
"id": "integreat-mail-prod",
"lambda_function.#": "0",
"queue.#": "1",
"queue.0.events.#": "1",
"queue.0.events.3356830603": "s3:ObjectCreated:*",
"queue.0.filter_prefix": "",
"queue.0.filter_suffix": "",
"queue.0.id": "tf-s3-queue-20180406031531190700000001",
"queue.0.queue_arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"topic.#": "0"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_ses_receipt_rule.store": {
"type": "aws_ses_receipt_rule",
"depends_on": [
"aws_s3_bucket.invoices",
"aws_ses_receipt_rule_set.main"
],
"primary": {
"id": "store-prod",
"attributes": {
"add_header_action.#": "0",
"bounce_action.#": "0",
"enabled": "true",
"id": "store-prod",
"lambda_action.#": "0",
"name": "store-prod",
"recipients.#": "1",
"recipients.2059710502": "invoices@mail.integreat.aws.brycecovertoperations.com",
"rule_set_name": "default-rule-set",
"s3_action.#": "1",
"s3_action.4268582484.bucket_name": "integreat-mail-prod",
"s3_action.4268582484.kms_key_arn": "",
"s3_action.4268582484.object_key_prefix": "",
"s3_action.4268582484.position": "1",
"s3_action.4268582484.topic_arn": "",
"scan_enabled": "true",
"sns_action.#": "0",
"stop_action.#": "0",
"tls_policy": "Optional",
"workmail_action.#": "0"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_ses_receipt_rule_set.main": {
"type": "aws_ses_receipt_rule_set",
"depends_on": [],
"primary": {
"id": "default-rule-set",
"attributes": {
"id": "default-rule-set",
"rule_set_name": "default-rule-set"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_sns_topic.reminder_topic": {
"type": "aws_sns_topic",
"depends_on": [],
"primary": {
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"attributes": {
"application_failure_feedback_role_arn": "",
"application_success_feedback_role_arn": "",
"application_success_feedback_sample_rate": "0",
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"delivery_policy": "",
"display_name": "",
"http_failure_feedback_role_arn": "",
"http_success_feedback_role_arn": "",
"http_success_feedback_sample_rate": "0",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"lambda_failure_feedback_role_arn": "",
"lambda_success_feedback_role_arn": "",
"lambda_success_feedback_sample_rate": "0",
"name": "reminders-prod",
"policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Publish\",\"SNS:RemovePermission\",\"SNS:SetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:Receive\",\"SNS:AddPermission\",\"SNS:Subscribe\"],\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"679918342773\"}}},{\"Sid\":\"__console_pub_0\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"SNS:Publish\",\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\"}]}",
"sqs_failure_feedback_role_arn": "",
"sqs_success_feedback_role_arn": "",
"sqs_success_feedback_sample_rate": "0"
},
"meta": {},
"tainted": false
},
"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-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"attributes": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"confirmation_timeout_in_minutes": "1",
"endpoint": "https://integreat.aws.brycecovertoperations.com/api/reminders/send",
"endpoint_auto_confirms": "true",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"protocol": "https",
"raw_message_delivery": "false",
"topic_arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_sqs_queue.integreat-mail": {
"type": "aws_sqs_queue",
"depends_on": [
"aws_s3_bucket.invoices"
],
"primary": {
"id": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"attributes": {
"arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"content_based_deduplication": "false",
"delay_seconds": "0",
"fifo_queue": "false",
"id": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"max_message_size": "262144",
"message_retention_seconds": "345600",
"name": "integreat-mail-prod",
"policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:*:*:integreat-mail-prod\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"arn:aws:s3:::integreat-mail-prod\"}}}]}",
"receive_wait_time_seconds": "0",
"tags.%": "0",
"visibility_timeout_seconds": "30"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"data.aws_caller_identity.current": {
"type": "aws_caller_identity",
"depends_on": [],
"primary": {
"id": "2018-04-08 21:28:57.063150249 +0000 UTC",
"attributes": {
"account_id": "679918342773",
"arn": "arn:aws:iam::679918342773:user/bryce",
"id": "2018-04-08 21:28:57.063150249 +0000 UTC",
"user_id": "AIDAJPUJFTOKO4IRADMV4"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
}
},
"depends_on": []
"schema_version": 0,
"attributes_flat": {
"account_id": "679918342773",
"arn": "arn:aws:iam::679918342773:user/bryce",
"id": "2018-04-08 21:28:57.063150249 +0000 UTC",
"user_id": "AIDAJPUJFTOKO4IRADMV4"
},
"sensitive_attributes": []
}
]
]
},
{
"mode": "managed",
"type": "aws_cloudwatch_event_rule",
"name": "scheduled_reminders",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:events:us-east-1:679918342773:rule/send-scheduled-emails-prod",
"description": "",
"id": "send-scheduled-emails-prod",
"is_enabled": "true",
"name": "send-scheduled-emails-prod",
"role_arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"schedule_expression": "rate(4 hours)"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_cloudwatch_event_target",
"name": "sns",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"id": "send-scheduled-emails-prod-SendToSNS",
"input": "",
"input_path": "",
"role_arn": "",
"rule": "send-scheduled-emails-prod",
"target_id": "SendToSNS"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_access_key",
"name": "app_user",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "AKIAISQDBHDDBYVHNXMQ",
"secret": "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",
"ses_smtp_password": "AkXuCSGd0AHGdeQiVbLFJRBcZZmgO3od/LySjNbEUSRR",
"status": "Active",
"user": "integreat-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_role",
"name": "reminder_send_role",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
"create_date": "2018-04-08T21:29:29Z",
"force_detach_policies": "false",
"id": "reminder-send-role-prod",
"name": "reminder-send-role-prod",
"path": "/",
"unique_id": "AROAJU3XYXVQUHOKPRZD4"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_role_policy_attachment",
"name": "allow_send",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "reminder-send-role-prod-20180408212928695300000002",
"policy_arn": "arn:aws:iam::aws:policy/AmazonSNSFullAccess",
"role": "reminder-send-role-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_user",
"name": "app_user",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:iam::679918342773:user/integreat-prod",
"force_destroy": "false",
"id": "integreat-prod",
"name": "integreat-prod",
"path": "/",
"unique_id": "AIDAINFBWI2I7A3TKPGW2"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_user_policy_attachment",
"name": "app_user_policy",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "integreat-prod-20180408212927036600000001",
"policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess",
"user": "integreat-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_s3_bucket",
"name": "invoices",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"acceleration_status": "",
"acl": "private",
"arn": "arn:aws:s3:::integreat-mail-prod",
"bucket": "integreat-mail-prod",
"bucket_domain_name": "integreat-mail-prod.s3.amazonaws.com",
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "integreat-mail-prod",
"logging.#": "0",
"policy": "{\"Statement\":[{\"Action\":\"s3:PutObject\",\"Condition\":{\"StringEquals\":{\"aws:Referer\":\"679918342773\"}},\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ses.amazonaws.com\"},\"Resource\":\"arn:aws:s3:::integreat-mail-prod/*\",\"Sid\":\"AllowSESPuts\"}],\"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.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_s3_bucket_notification",
"name": "mail_bucket_notification",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"bucket": "integreat-mail-prod",
"id": "integreat-mail-prod",
"lambda_function.#": "0",
"queue.#": "1",
"queue.0.events.#": "1",
"queue.0.events.3356830603": "s3:ObjectCreated:*",
"queue.0.filter_prefix": "",
"queue.0.filter_suffix": "",
"queue.0.id": "tf-s3-queue-20180406031531190700000001",
"queue.0.queue_arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"topic.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_ses_receipt_rule",
"name": "store",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"add_header_action.#": "0",
"bounce_action.#": "0",
"enabled": "true",
"id": "store-prod",
"lambda_action.#": "0",
"name": "store-prod",
"recipients.#": "1",
"recipients.2059710502": "invoices@mail.integreat.aws.brycecovertoperations.com",
"rule_set_name": "default-rule-set",
"s3_action.#": "1",
"s3_action.4268582484.bucket_name": "integreat-mail-prod",
"s3_action.4268582484.kms_key_arn": "",
"s3_action.4268582484.object_key_prefix": "",
"s3_action.4268582484.position": "1",
"s3_action.4268582484.topic_arn": "",
"scan_enabled": "true",
"sns_action.#": "0",
"stop_action.#": "0",
"tls_policy": "Optional",
"workmail_action.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_ses_receipt_rule_set",
"name": "main",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "default-rule-set",
"rule_set_name": "default-rule-set"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sns_topic",
"name": "reminder_topic",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"application_failure_feedback_role_arn": "",
"application_success_feedback_role_arn": "",
"application_success_feedback_sample_rate": "0",
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"delivery_policy": "",
"display_name": "",
"http_failure_feedback_role_arn": "",
"http_success_feedback_role_arn": "",
"http_success_feedback_sample_rate": "0",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"lambda_failure_feedback_role_arn": "",
"lambda_success_feedback_role_arn": "",
"lambda_success_feedback_sample_rate": "0",
"name": "reminders-prod",
"policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Publish\",\"SNS:RemovePermission\",\"SNS:SetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:Receive\",\"SNS:AddPermission\",\"SNS:Subscribe\"],\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"679918342773\"}}},{\"Sid\":\"__console_pub_0\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"SNS:Publish\",\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\"}]}",
"sqs_failure_feedback_role_arn": "",
"sqs_success_feedback_role_arn": "",
"sqs_success_feedback_sample_rate": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sns_topic_subscription",
"name": "send_reminders_to_service",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"confirmation_timeout_in_minutes": "1",
"endpoint": "https://integreat.aws.brycecovertoperations.com/api/reminders/send",
"endpoint_auto_confirms": "true",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"protocol": "https",
"raw_message_delivery": "false",
"topic_arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sqs_queue",
"name": "integreat-mail",
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"content_based_deduplication": "false",
"delay_seconds": "0",
"fifo_queue": "false",
"id": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"max_message_size": "262144",
"message_retention_seconds": "345600",
"name": "integreat-mail-prod",
"policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:*:*:integreat-mail-prod\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"arn:aws:s3:::integreat-mail-prod\"}}}]}",
"receive_wait_time_seconds": "0",
"tags.%": "0",
"visibility_timeout_seconds": "30"
},
"sensitive_attributes": []
}
]
}
],
"check_results": null
}

View File

@@ -0,0 +1,370 @@
{
"version": 4,
"terraform_version": "1.4.6",
"serial": 22,
"lineage": "9b630886-8cee-a57d-c7a2-4f19f13f9c51",
"outputs": {
"aws_access_key_id": {
"value": "AKIAISQDBHDDBYVHNXMQ",
"type": "string"
},
"aws_default_region": {
"value": "us-east-1",
"type": "string"
},
"aws_secret_access_key": {
"value": "emIzqz9zW+5WrbJHwc1MI0gSS9IXF5feFFxnQI+7",
"type": "string"
},
"queue_url": {
"value": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"type": "string"
}
},
"resources": [
{
"mode": "data",
"type": "aws_caller_identity",
"name": "current",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"account_id": "679918342773",
"arn": "arn:aws:iam::679918342773:user/bryce",
"id": "2018-04-08 21:28:57.063150249 +0000 UTC",
"user_id": "AIDAJPUJFTOKO4IRADMV4"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_cloudwatch_event_rule",
"name": "scheduled_reminders",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:events:us-east-1:679918342773:rule/send-scheduled-emails-prod",
"description": "",
"id": "send-scheduled-emails-prod",
"is_enabled": "true",
"name": "send-scheduled-emails-prod",
"role_arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"schedule_expression": "rate(4 hours)"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_cloudwatch_event_target",
"name": "sns",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"id": "send-scheduled-emails-prod-SendToSNS",
"input": "",
"input_path": "",
"role_arn": "",
"rule": "send-scheduled-emails-prod",
"target_id": "SendToSNS"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_access_key",
"name": "app_user",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "AKIAISQDBHDDBYVHNXMQ",
"secret": "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",
"ses_smtp_password": "AkXuCSGd0AHGdeQiVbLFJRBcZZmgO3od/LySjNbEUSRR",
"status": "Active",
"user": "integreat-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_role",
"name": "reminder_send_role",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:iam::679918342773:role/reminder-send-role-prod",
"assume_role_policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"events.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}",
"create_date": "2018-04-08T21:29:29Z",
"force_detach_policies": "false",
"id": "reminder-send-role-prod",
"name": "reminder-send-role-prod",
"path": "/",
"unique_id": "AROAJU3XYXVQUHOKPRZD4"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_role_policy_attachment",
"name": "allow_send",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "reminder-send-role-prod-20180408212928695300000002",
"policy_arn": "arn:aws:iam::aws:policy/AmazonSNSFullAccess",
"role": "reminder-send-role-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_user",
"name": "app_user",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:iam::679918342773:user/integreat-prod",
"force_destroy": "false",
"id": "integreat-prod",
"name": "integreat-prod",
"path": "/",
"unique_id": "AIDAINFBWI2I7A3TKPGW2"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_iam_user_policy_attachment",
"name": "app_user_policy",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "integreat-prod-20180408212927036600000001",
"policy_arn": "arn:aws:iam::aws:policy/AdministratorAccess",
"user": "integreat-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_s3_bucket",
"name": "invoices",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"acceleration_status": "",
"acl": "private",
"arn": "arn:aws:s3:::integreat-mail-prod",
"bucket": "integreat-mail-prod",
"bucket_domain_name": "integreat-mail-prod.s3.amazonaws.com",
"force_destroy": "false",
"hosted_zone_id": "Z3AQBSTGFYJSTF",
"id": "integreat-mail-prod",
"logging.#": "0",
"policy": "{\"Statement\":[{\"Action\":\"s3:PutObject\",\"Condition\":{\"StringEquals\":{\"aws:Referer\":\"679918342773\"}},\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ses.amazonaws.com\"},\"Resource\":\"arn:aws:s3:::integreat-mail-prod/*\",\"Sid\":\"AllowSESPuts\"}],\"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.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_s3_bucket_notification",
"name": "mail_bucket_notification",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"bucket": "integreat-mail-prod",
"id": "integreat-mail-prod",
"lambda_function.#": "0",
"queue.#": "1",
"queue.0.events.#": "1",
"queue.0.events.3356830603": "s3:ObjectCreated:*",
"queue.0.filter_prefix": "",
"queue.0.filter_suffix": "",
"queue.0.id": "tf-s3-queue-20180406031531190700000001",
"queue.0.queue_arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"topic.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_ses_receipt_rule",
"name": "store",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"add_header_action.#": "0",
"bounce_action.#": "0",
"enabled": "true",
"id": "store-prod",
"lambda_action.#": "0",
"name": "store-prod",
"recipients.#": "1",
"recipients.2059710502": "invoices@mail.integreat.aws.brycecovertoperations.com",
"rule_set_name": "default-rule-set",
"s3_action.#": "1",
"s3_action.4268582484.bucket_name": "integreat-mail-prod",
"s3_action.4268582484.kms_key_arn": "",
"s3_action.4268582484.object_key_prefix": "",
"s3_action.4268582484.position": "1",
"s3_action.4268582484.topic_arn": "",
"scan_enabled": "true",
"sns_action.#": "0",
"stop_action.#": "0",
"tls_policy": "Optional",
"workmail_action.#": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_ses_receipt_rule_set",
"name": "main",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"id": "default-rule-set",
"rule_set_name": "default-rule-set"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sns_topic",
"name": "reminder_topic",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"application_failure_feedback_role_arn": "",
"application_success_feedback_role_arn": "",
"application_success_feedback_sample_rate": "0",
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"delivery_policy": "",
"display_name": "",
"http_failure_feedback_role_arn": "",
"http_success_feedback_role_arn": "",
"http_success_feedback_sample_rate": "0",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod",
"lambda_failure_feedback_role_arn": "",
"lambda_success_feedback_role_arn": "",
"lambda_success_feedback_sample_rate": "0",
"name": "reminders-prod",
"policy": "{\"Version\":\"2008-10-17\",\"Id\":\"__default_policy_ID\",\"Statement\":[{\"Sid\":\"__default_statement_ID\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":[\"SNS:Publish\",\"SNS:RemovePermission\",\"SNS:SetTopicAttributes\",\"SNS:DeleteTopic\",\"SNS:ListSubscriptionsByTopic\",\"SNS:GetTopicAttributes\",\"SNS:Receive\",\"SNS:AddPermission\",\"SNS:Subscribe\"],\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\",\"Condition\":{\"StringEquals\":{\"AWS:SourceOwner\":\"679918342773\"}}},{\"Sid\":\"__console_pub_0\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"*\"},\"Action\":\"SNS:Publish\",\"Resource\":\"arn:aws:sns:us-east-1:679918342773:reminders\"}]}",
"sqs_failure_feedback_role_arn": "",
"sqs_success_feedback_role_arn": "",
"sqs_success_feedback_sample_rate": "0"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sns_topic_subscription",
"name": "send_reminders_to_service",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"confirmation_timeout_in_minutes": "1",
"endpoint": "https://integreat.aws.brycecovertoperations.com/api/reminders/send",
"endpoint_auto_confirms": "true",
"id": "arn:aws:sns:us-east-1:679918342773:reminders-prod:760fbd12-3e50-43e1-859e-fefdc0751c34",
"protocol": "https",
"raw_message_delivery": "false",
"topic_arn": "arn:aws:sns:us-east-1:679918342773:reminders-prod"
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "aws_sqs_queue",
"name": "integreat-mail",
"provider": "provider[\"registry.terraform.io/-/aws\"]",
"instances": [
{
"schema_version": 0,
"attributes_flat": {
"arn": "arn:aws:sqs:us-east-1:679918342773:integreat-mail-prod",
"content_based_deduplication": "false",
"delay_seconds": "0",
"fifo_queue": "false",
"id": "https://sqs.us-east-1.amazonaws.com/679918342773/integreat-mail-prod",
"max_message_size": "262144",
"message_retention_seconds": "345600",
"name": "integreat-mail-prod",
"policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:*:*:integreat-mail-prod\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"arn:aws:s3:::integreat-mail-prod\"}}}]}",
"receive_wait_time_seconds": "0",
"tags.%": "0",
"visibility_timeout_seconds": "30"
},
"sensitive_attributes": []
}
]
}
],
"check_results": null
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +0,0 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
required_version = ">= 0.13"
}