Skip to content
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

chore: Update Annotations based VS blueprints #1722

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.2.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
</ItemGroup>
<!--
The FrameworkReference is used to reduce the deployment bundle size by not having to include
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.2.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Functions()
/// </remarks>
/// <param name="context">Information about the invocation, function, and execution environment</param>
/// <returns>The response as an implicit <see cref="APIGatewayProxyResponse"/></returns>
[LambdaFunction(PackageType = LambdaPackageType.Image, Policies = "AWSLambdaBasicExecutionRole", MemorySize = 512, Timeout = 30)]
[LambdaFunction(PackageType = LambdaPackageType.Image)]
[RestApi(LambdaHttpMethod.Get, "/")]
public IHttpResult Get(ILambdaContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.2.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Functions()
/// </remarks>
/// <param name="context">Information about the invocation, function, and execution environment</param>
/// <returns>The response as an implicit <see cref="APIGatewayProxyResponse"/></returns>
[LambdaFunction(Policies = "AWSLambdaBasicExecutionRole", MemorySize = 512, Timeout = 30)]
[LambdaFunction]
[RestApi(LambdaHttpMethod.Get, "/")]
public IHttpResult Get(ILambdaContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.2.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.SQSEvents" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"Properties": {
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"MemorySize": 512,
"Timeout": 30,
"Policies": [
"AWSLambdaSQSQueueExecutionRole"
Expand Down Expand Up @@ -47,7 +47,7 @@
"Properties": {
"Runtime": "dotnet8",
"CodeUri": ".",
"MemorySize": 256,
"MemorySize": 512,
"Timeout": 30,
"Policies": [
"AmazonSQSFullAccess"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Amazon.Lambda.RuntimeSupport" Version="1.10.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.2.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Functions
/// </summary>
/// <param name="context">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
/// <returns></returns>
[LambdaFunction(MemorySize = 512)]
[LambdaFunction]
[RestApi(LambdaHttpMethod.Get, "/")]
public IHttpResult GetFunctionHandler(ILambdaContext context)
{
Expand All @@ -58,7 +58,7 @@ public IHttpResult GetFunctionHandler(ILambdaContext context)
/// <param name="product">The new product to post to the system.</param>
/// <param name="context">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
/// <returns></returns>
[LambdaFunction(MemorySize = 512)]
[LambdaFunction]
[RestApi(LambdaHttpMethod.Post, "/")]
public IHttpResult PostFunctionHandler([FromBody] NewProductDTO product, ILambdaContext context)
{
Expand All @@ -77,7 +77,7 @@ public IHttpResult PostFunctionHandler([FromBody] NewProductDTO product, ILambda
/// using the AWS SDKs.
/// </summary>
/// <returns></returns>
[LambdaFunction(MemorySize = 512)]
[LambdaFunction]
public async Task<string> GetCallingIPAsync(ILambdaContext context)
{
context.Logger.LogInformation("Checking IP address");
Expand Down
2 changes: 1 addition & 1 deletion Blueprints/BlueprintDefinitions/vs2022/template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Amazon.Lambda.Templates</id>
<version>7.1.0</version>
<version>7.1.1</version>
<authors>Amazon Web Services</authors>
<tags>AWS Amazon Lambda</tags>
<description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</description>
Expand Down
Loading