Hi,
This one feels a bit silly, though I am stuck on what to do.
After I have deployed my stack, if I run the deploy function only command:
serverless deploy --stage adam --aws-profile adam function --function functionName
I get the message:
The function “functionName” you want to update is not yet deployed.
Please run “serverless deploy” to deploy your service. After that you can redeploy your services functions with the “serverless deploy function” command.
So it is clearly already deployed
I am using the latest version of serverless: 3.12.0
Also using the following plugins
plugins:
- serverless-appsync-plugin
- serverless-iam-roles-per-function
- serverless-webpack
My functions are in separate files as an array list
functions:
- ${file(resources/functions/function-1.yml)}
- ${file(resources/functions/function-2.yml)}
- ${file(resources/functions/function-3.yml)}
...
In a different stack I was experimenting with the name field for function names:
functionName
name: ${self:service}-functionName
...
This successfully works to deploy a single function.
I can’t add the name field as I have a lot of functions and it breaks the CreateLogGroup
and CreateLogStream
auto generated policy as it gets too big.
How do I go about debugging this?