Skip to content

Commit e48cb09

Browse files
committed
feat: updated templates to .NET 8 runtime. Made sure all timeouts are the same
1 parent 6aa7c18 commit e48cb09

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Unicorn.Contracts/ContractsService/ContractEventHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ private async Task CreateContractAsync(SQSEvent.SQSMessage sqsMessage)
155155
"ContractLastModifiedOn",
156156
new AttributeValue { S = contract.ContractLastModifiedOn.ToString("O") }
157157
}
158-
}
158+
}
159159
};
160160

161161
Logger.LogInformation(JsonSerializer.Serialize(request));
162162

163-
var response = await _dynamoDbClient.PutItemAsync(request).ConfigureAwait(false);
163+
var response = await _dynamoDbClient.PutItemAsync(request);
164164

165165
Logger.LogInformation(response);
166166

Unicorn.Contracts/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Globals:
4545
Api:
4646
OpenApiVersion: 3.0.1
4747
Function:
48-
Runtime: dotnet6
48+
Runtime: dotnet8
4949
MemorySize: 512
50-
Timeout: 3
50+
Timeout: 10
5151
Tracing: Active
5252
Architectures:
5353
- x86_64

Unicorn.Properties/PropertiesService/ContentIntegrityValidatorFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ContentIntegrityValidatorFunction()
3737
/// <param name="context">Lambda Context runtime methods and attributes</param>
3838
[Logging(LogEvent = true)]
3939
[Metrics(CaptureColdStart = true)]
40-
// [Tracing(CaptureMode = TracingCaptureMode.ResponseAndError)]
40+
[Tracing(CaptureMode = TracingCaptureMode.ResponseAndError)]
4141
public object FunctionHandler(object input, ILambdaContext context)
4242
{
4343
var status = "PASS";

Unicorn.Properties/template.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Conditions:
4444

4545
Globals:
4646
Function:
47-
Runtime: dotnet6
47+
Runtime: dotnet8
4848
MemorySize: 512
49-
Timeout: 15
49+
Timeout: 10
5050
Tracing: Active
5151
Architectures:
5252
- x86_64
@@ -469,16 +469,16 @@ Resources:
469469
Stage: !Ref Stage
470470

471471
# CloudFormation Stack with the Cross-service EventBus Rules for Properties Service
472-
# SubscriptionsStack:
473-
# Type: AWS::Serverless::Application
474-
# UpdateReplacePolicy: Delete
475-
# DeletionPolicy: Delete
476-
# DependsOn:
477-
# - UnicornPropertiesEventBusArnParam
478-
# Properties:
479-
# Location: "Integration/subscriptions.yaml"
480-
# Parameters:
481-
# Stage: !Ref Stage
472+
SubscriptionsStack:
473+
Type: AWS::Serverless::Application
474+
UpdateReplacePolicy: Delete
475+
DeletionPolicy: Delete
476+
DependsOn:
477+
- UnicornPropertiesEventBusArnParam
478+
Properties:
479+
Location: "Integration/subscriptions.yaml"
480+
Parameters:
481+
Stage: !Ref Stage
482482

483483
Outputs:
484484
#### DYNAMODB OUTPUTS

Unicorn.Web/template.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Globals:
4545
Api:
4646
OpenApiVersion: 3.0.1
4747
Function:
48-
Runtime: dotnet6
48+
Runtime: dotnet8
4949
MemorySize: 512
50-
Timeout: 15
50+
Timeout: 10
5151
Tracing: Active
5252
Architectures:
5353
- x86_64

0 commit comments

Comments
 (0)