Skip to content

Conversation

@andersem
Copy link

@andersem andersem commented Dec 7, 2025

When running the sra-easy-setup with the CloudTrail solution, and these parameters set:

- parameter_key: pEnableLambdaDataEvents
  parameter_value: "true"
- parameter_key: pEnableS3DataEvents
  parameter_value: "true"

the CloudTrail stack creation fails with this error:

This Custom::LambdaCustomResource resource is in a CREATE_FAILED state.

Received response status [FAILED] from custom resource. Message returned: An error occurred (InvalidEventSelectorsException) when calling the PutEventSelectors operation: Value arn:aws:s3:::* for DataResources.Values is invalid.

and:

Received response status [FAILED] from custom resource. Message returned: An error occurred (InvalidEventSelectorsException) when calling the PutEventSelectors operation: Value arn:aws:lambda:* for DataResources.Values is invalid.

Fixing this by correcting the syntax.

Fixes #335


By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].

Apache 2.0 License

cloudtrail-org fails with:

```
 This Custom::LambdaCustomResource resource is in a CREATE_FAILED state.

Received

response status [FAILED] from custom resource. Message returned: An

error occurred (InvalidEventSelectorsException) when calling the

PutEventSelectors operation: Value arn:aws:s3:::* for

DataResources.Values is invalid.
```

and:

```
 Received

response status [FAILED] from custom resource. Message returned: An

error occurred (InvalidEventSelectorsException) when calling the

PutEventSelectors operation: Value arn:aws:lambda:* for

DataResources.Values is invalid.
```

Fixing this by correcting the syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] InvalidEventSelectorsException when calling the PutEventSelectors operation

1 participant