aws / aws-extensions-for-dotnet-cli

Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
Apache License 2.0
369 stars 86 forks source link

Fixed issue with Lambda Function URL being accidentally being cleared out #215

Closed normj closed 2 years ago

normj commented 2 years ago

Description of changes: If a Lambda function currently has a function url configured and then calls deploy without setting the --function-url-enable switch the tool would remove the url configuration which it should not have done. This PR checks when the --function-url-enable is not set and uses the current state of the function url to determine if url changes should be made.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.