mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Allow Fn::Join in SQS arn builder
This commit is contained in:
parent
a4b87a1c50
commit
03cc4d4a48
@ -49,7 +49,8 @@ class AwsCompileSQSEvents {
|
||||
// for dynamic arns (GetAtt/ImportValue)
|
||||
if (Object.keys(event.sqs.arn).length !== 1
|
||||
|| !(_.has(event.sqs.arn, 'Fn::ImportValue')
|
||||
|| _.has(event.sqs.arn, 'Fn::GetAtt'))) {
|
||||
|| _.has(event.sqs.arn, 'Fn::GetAtt')
|
||||
|| _.has(event.sqs.arn, 'Fn::Join'))) {
|
||||
const errorMessage = [
|
||||
`Bad dynamic ARN property on sqs event in function "${functionName}"`,
|
||||
' If you use a dynamic "arn" (such as with Fn::GetAtt or Fn::ImportValue)',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user