-
|
I would like to have Lambda VpcConfig in my code, but I can't seem to find an option to do this: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Need to test this scenario at my end. If we are renaming the function, then essentially, we are deleting the old function and it might cause |
Beta Was this translation helpful? Give feedback.
-
|
In order to add any new resource to the Lambda Annotations project, you will need to manually update the CloudFormation template serverless.template. You mentioned that your changes are being overwritten in serverless.template. I tried updating a sample annotation project with a VPC resource and things worked as expected. Lambda Annotations should only update the CloudFormation resource related to your Lambda functions and it should not affect any other resources you might have added. If you are still having issues, could you please update Lambda Annotations to the latest version? and could you please share the serverless.template with the VPC resource before it gets overwritten? |
Beta Was this translation helpful? Give feedback.
-
|
@MrLehiste, are you still running into problems on this after looking at philasmar's response? |
Beta Was this translation helpful? Give feedback.
In order to add any new resource to the Lambda Annotations project, you will need to manually update the CloudFormation template serverless.template. You mentioned that your changes are being overwritten in serverless.template. I tried updating a sample annotation project with a VPC resource and things worked as expected. Lambda Annotations should only update the CloudFormation resource related to your Lambda functions and it should not affect any other resources you might have added. If you are still having issues, could you please update Lambda Annotations to the latest version? and could you please share the serverless.template with the VPC resource before it gets overwritten?