Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

is it possible to create s3 event notification for to 2 lambda funtions or 2 sqs?

$
0
0

is it possible to create s3 event notification to trigger 2 lambda functions (success function and failure function) or 2 sqs for (success upload or failure upload), what I am trying to achieve is I want my s3 bucket when I upload to s3 depending on results (upload success/upload failure) I want to trigger sqs for (success upload or failure upload) or lambda functions (success function and failure function) then the sqs will trigger a lambda function or vise versa?

I have tried this using Terraform but I get this Error when I run Terraform apply (│ Error: creating S3 Bucket (aishoptest452) Notification: operation error S3: PutBucketNotificationConfiguration, https response error StatusCode: 400, RequestID: 4KC4VPWA3SVP9X9B, HostID: 1SmQtliWBJqgV115tiXaZWWTW2I4nST3tZo+E4lZU4hKZa4nTNx/ARx314tkgnJRh7+mRM/nrvI=, api error InvalidArgument: Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.││ with aws_s3_bucket_notification.bucket_notification,│ on main.tf line 100, in resource "aws_s3_bucket_notification" "bucket_notification":│ 100: resource "aws_s3_bucket_notification" "bucket_notification" {│) Please assist. and Thanks in advance


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>