-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws_sqs_queue.tf
27 lines (26 loc) · 1019 Bytes
/
aws_sqs_queue.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
resource "aws_sqs_queue" "s3_object_created_comprehend" {
name = "${local.organization}-s3-object-created-comprehend"
message_retention_seconds = 86400
tags = {
account_arn = data.aws_caller_identity.main.arn
account_id = data.aws_caller_identity.main.account_id
bucket = aws_s3_bucket.main.id
bucket_key = aws_s3_object.comprehend.key
organization = local.organization
region = data.aws_region.main.name
workspace = terraform.workspace
}
}
resource "aws_sqs_queue" "s3_object_created_text" {
name = "${local.organization}-s3-object-created-text"
message_retention_seconds = 86400
tags = {
account_arn = data.aws_caller_identity.main.arn
account_id = data.aws_caller_identity.main.account_id
bucket = aws_s3_bucket.main.id
bucket_key = aws_s3_object.text.key
organization = local.organization
region = data.aws_region.main.name
workspace = terraform.workspace
}
}