Skip to content

Commit

Permalink
log format
Browse files Browse the repository at this point in the history
  • Loading branch information
prenagha committed Aug 22, 2024
1 parent 4053b0e commit dd36799
Show file tree
Hide file tree
Showing 2 changed files with 616 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cdk/src/main/java/com/renaghan/todo/cdk/ServiceApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static java.util.Collections.singletonList;

import dev.stratospheric.cdk.Network;
import dev.stratospheric.cdk.Service;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -78,9 +77,9 @@ public static void main(String[] args) {
databaseOutputParameters.databaseSecurityGroupId(),
activeMqOutputParameters.activeMqSecurityGroupId());

Service.ServiceInputParameters inputParameters =
new Service.ServiceInputParameters(
new Service.DockerImageSource(
ServiceStack.ServiceInputParameters inputParameters =
new ServiceStack.ServiceInputParameters(
new ServiceStack.DockerImageSource(
app.getContext("dockerRepositoryName"), app.getContext("dockerImageTag")),
securityGroupIdsToGrantIngressFromEcs,
vars)
Expand Down Expand Up @@ -161,12 +160,10 @@ public static void main(String[] args) {
.build()))
.withStickySessionsEnabled(true)
.withHealthCheckPath("/mgmt/health")
.withAwsLogsDateTimeFormat("")
// .withAwsLogsDateTimeFormat("%Y-%m-%dT%H:%M:%S.%f%z")
// needs to be long enough to allow for slow start up with low-end computing instances
.withHealthCheckIntervalSeconds(30);

new Service(
new ServiceStack(
serviceStack,
"Service",
app.awsEnv(),
Expand Down
Loading

0 comments on commit dd36799

Please sign in to comment.