Hi,
I’m trying to notify an SQS Queue when an object is created in an S3 bucket.
This is my serverless.json
:
{
"service": "my-service",
"provider": {
"name": "aws",
"runtime": "python3.8",
"lambdaHashingVersion": 20201221
},
"resources":{
"Resources":{
"InputQueue":{
"Type": "AWS::SQS::Queue",
"Properties": {
"QueueName": "InputQueue"
}
},
"InputBucket":{
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": "my-input-bucket-${self:provider.stage}",
"NotificationConfiguration": {
"QueueConfigurations": [
{
"Event": "s3:ObjectCreated:*",
"Queue": {
"Fn::GetAtt": [
"InputQueue",
"Arn"
]
}
}
]
}
}
}
}
}
}
I’m getting the following error: An error occurred: InputBucket - Unable to validate the following destination configurations (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument;
…
What am I missing?