Allow Fn::Join in SQS arn builder

This commit is contained in:
Alex DeBrie 2018-10-03 16:38:31 +00:00 committed by Philipp Muens
parent a4b87a1c50
commit 03cc4d4a48

View File

@ -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)',