-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serverless-sam exports template with invalid function names and incomplete template #35
Comments
Looks like the issue is happening only when the serverless.yml file contains references to files containing functions definitions under functions section. When the functions are directly defined under functions section of serverless.yml the plugin works fine. |
+1 Same thing happens to me. Also happens for my provider:
environment: ${file(env.yml):${self:provider.stage}}
functions:
- ${file(src/services/reports/functions.yml)}
resources:
- ${file(resources/cognito-app-identitypool.yml)}
- ${file(resources/cognito-app-userpool.yml)}
- ${file(resources/s3-photo-bucket.yml)}
- ${file(resources/sqs-send-queue.yml)} turn to: Environment:
Variables:
'0': $
'1': '{'
'2': f
'3': i
'4': l
'5': e
'6': (
'7': e
'8': 'n'
'9': v
'10': .
'11': 'y'
'12': m
'13': l
'14': )
'15': ':'
'16': $
'17': '{'
'18': s
'19': e
'20': l
'21': f
'22': ':'
'23': p
'24': r
'25': o
'26': v
'27': i
'28': d
'29': e
'30': r
'31': .
'32': s
'33': t
'34': a
'35': g
'36': e
'37': '}'
'38': '}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When using serverless-sam to generate SAM template from serverless template which has multiple templates included I'm getting an invalid template with incorrect function names and incomplete template with no handlers.
Here is the log:
Here is the sample generated template.
The function names are exported as 0, 1, 2, 3 etc and there are no handlers generated!
Attached the serverless and generated sam templates.
files.zip
Cheers
The text was updated successfully, but these errors were encountered: