Skip to content

Commit

Permalink
fix(pulumi-aws): remove development logging
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Mar 12, 2024
1 parent 7ae6cec commit b840333
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions packages/pulumi-aws/src/apps/api/ApiWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export const ApiWebsocket = createAppModule({
}
});

// TODO remove logging when stopped developing

const apiGatewayLoggingRole = app.addResource(aws.iam.Role, {
name: "apiGatewayLoggingRole",
config: {
Expand All @@ -139,21 +137,6 @@ export const ApiWebsocket = createAppModule({
}
});

app.addResource(aws.apigateway.Account, {
name: "apiGatewayAccount",
config: {
cloudwatchRoleArn: apiGatewayLoggingRole.output.arn
}
});

// TODO remove when development is done
const logGroup = app.addResource(aws.cloudwatch.LogGroup, {
name: "websocket-api-log",
config: {
retentionInDays: 7
}
});

const websocketApiStage = app.addResource(aws.apigatewayv2.Stage, {
name: "websocket-api-stage",
config: {
Expand All @@ -164,22 +147,6 @@ export const ApiWebsocket = createAppModule({
loggingLevel: "INFO",
throttlingBurstLimit: 1000,
throttlingRateLimit: 500
},
// TODO remove when development is done
accessLogSettings: {
destinationArn: logGroup.output.arn,
format: JSON.stringify({
requestId: "$context.requestId",
ip: "$context.identity.sourceIp",
caller: "$context.identity.caller",
user: "$context.identity.user",
requestTime: "$context.requestTime",
httpMethod: "$context.httpMethod",
resourcePath: "$context.resourcePath",
status: "$context.status",
protocol: "$context.protocol",
responseLength: "$context.responseLength"
})
}
}
});
Expand Down

0 comments on commit b840333

Please sign in to comment.