"SourceArn": {
"Fn::Join": [
"-",
[
"s3test",
"dev",
"datalake"
]
]
},
"SourceArn": {
"Fn::Join": [
"",
[
"arn:aws:s3:::",
{
"Ref": "AWS::Partition",
"Fn::Join": [
"-",
[
"s3test",
"dev",
"datalake"
]
]
},
":s3:::datalake"
]
]
},
If already made a Fork and I have a possible fix with tests.
This is a Bug Report
Description
When following https://serverless.com/framework/docs/providers/aws/events/s3#custom-bucket-configuration you cannot define a custom name with vars for the bucket because the SourceArn of the AWS::Lambda::Permission has to be a String. If the SourceArn is an object it gets _.merge() by the configuration the SLS automatically generates.
Now returns a merge:
The cloudformation stack is invalid with:
An error occurred: AthenaPartitionerLambdaPermissionDatalakeS3 - Value of property SourceArn must be of type String.Additional Data
If already made a Fork and I have a possible fix with tests.