Skip to content

Commit

Permalink
Autoformat sqs worker json configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkaholic committed Mar 29, 2020
1 parent be1aaca commit ecaf449
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 45 deletions.
19 changes: 10 additions & 9 deletions examples/sqsworker/config/s3-notification.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"TopicConfigurations": [
{
"Id": "s3-upload-notification-to-sns",
"TopicArn": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic",
"Events": ["s3:ObjectCreated:*"]
}
]
}

"TopicConfigurations": [
{
"Id": "s3-upload-notification-to-sns",
"TopicArn": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic",
"Events": [
"s3:ObjectCreated:*"
]
}
]
}
35 changes: 17 additions & 18 deletions examples/sqsworker/config/sns-permission.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"Version": "2012-10-17",
"Id": "allow-s3-publishing-to-sns",
"Statement": [
{
"Sid": "dev-images-s3-sid",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:s3:::local-kyoo-bucket"
}
"Version": "2012-10-17",
"Id": "allow-s3-publishing-to-sns",
"Statement": [
{
"Sid": "dev-images-s3-sid",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SNS:Publish",
"Resource": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:s3:::local-kyoo-bucket"
}
}
]
}
}
]
}
35 changes: 17 additions & 18 deletions examples/sqsworker/config/sqs-permission.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"Version": "2012-10-17",
"Id": "allow-sns-sending-message-to-sqs",
"Statement": [
{
"Sid": "dev-images-sqs-sid",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:000000000000:kyoo-images-queue",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic"
}
"Version": "2012-10-17",
"Id": "allow-sns-sending-message-to-sqs",
"Statement": [
{
"Sid": "dev-images-sqs-sid",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "SQS:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:000000000000:kyoo-images-queue",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:sns:us-east-1:000000000000:kyoo-images-topic"
}
}
]
}
}
]
}

0 comments on commit ecaf449

Please sign in to comment.