Skip to content

Commit

Permalink
feature #3 - update sqs policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 15, 2022
1 parent e75e2b2 commit 4e9ce8c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions terraform/sqs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ resource "aws_sqs_queue" "update-exchange-rate-queue" {

resource "aws_sqs_queue_policy" "update-exchange-rate-queue-policy" {
queue_url = aws_sqs_queue.update-exchange-rate-queue.id

policy = <<POLICY
{
"Version": "2012-10-17",
"Id": "update-exchange-rate-queue-policy",
"Statement": [
{
"Sid": "First",
"Effect": "Allow",
"Principal": {
"Service": "events.amazonaws.com"
},
{
"Sid": "First",
"Effect": "Allow",
"Principal": {
"Service": "events.amazonaws.com"
},
"Action": "sqs:SendMessage",
"Resource": "${aws_sqs_queue.update-exchange-rate-queue.arn}",
"Resource": "${aws_sqs_queue.update-exchange-rate-queue.arn}"
}
]
}
Expand Down

0 comments on commit 4e9ce8c

Please sign in to comment.