Skip to content

Unable to create multiple s3 trigger events for the same bucket. #422

Description

@xostap

Hi there,

I'm having an issue deploying multiple s3 trigger events for the same bucket.

Current Results:

When using evet_sources.json with eventSourceFile flag combination for deployment, only one of the s3 events listed in S3Events array (see below) will be created.

Expected Result:

The expectation is that user should be able to create multiple s3 triggers events for the same bucket if filter rules are different. It is currently possible to create manually multiple s3 trigger events using AWS Lambda console (UI) for the same bucket.

Here is deploy command example:

node-lambda deploy --configFile <SECRET_VARIABLES_FILE_US> --region us-east-1 --environment <ENV> --eventSourceFile <EVENT_SOURCES_FILE_US>

Here is "evet_sources.json" file contents:

{
"S3Events": [
{
"Bucket": "dev-jobs",
"Events": [
"s3:ObjectCreated:*"
],
"Filter": {
"Key": {
"FilterRules": [
{
"Name": "prefix",
"Value": "router/input"
},
{
"Name": "suffix",
"Value": ".json"
}
]
}
}
},
{
"Bucket": "dev-jobs",
"Events": [
"s3:ObjectCreated:*"
],
"Filter": {
"Key": {
"FilterRules": [
{
"Name": "prefix",
"Value": "router/output"
},
{
"Name": "suffix",
"Value": ".json"
}
]
}
}
}
]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions