aws-lambda-dotnet icon indicating copy to clipboard operation
aws-lambda-dotnet copied to clipboard

Amazon.Lambda.Annotations - Support suppressing serverless.template file creation

Open jasonmc86 opened this issue 10 months ago • 2 comments

Describe the feature

The ability to suppress the generation of the "serverless.template" file via a configuration when using Amazon.Lambda.Annotations.

Use Case

Our team's chosen IAC of choice isn't serverless (it's terraform) so we would like the ability to suppress the generation of the "serverless.template" file.

Ideally we have a choice to chose which IAC to generate but suppressing the file will be good enough for now.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [x] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS .NET SDK and/or Package version used

Amazon.Lambda.Annotations 1.6.1

Targeted .NET Platform

.NET 8

Operating System and version

Windows, Mac

jasonmc86 avatar Feb 17 '25 20:02 jasonmc86

The serverless.template is written here. Should be feasible to implement the feature request. Needs review with the team.

ashishdhingra avatar Feb 18 '25 18:02 ashishdhingra

@jasonmc86 Assuming in your use case terraform template would have to be manually generated, a flag/option would need to be added in global settings (refer example here) which could suppress template generation.

Feel free to contribute PR that could be reviewed by the team.

Thanks, Ashish

ashishdhingra avatar Feb 20 '25 17:02 ashishdhingra