ResourceInitializationError: failed to validate logger args: : signal: killed
This was a new error for me within starting up a task within an AWS Fargate backed service.
It ended up being quite a simple fix, though non obvious initially. I've explicitly disabled NAT in all of our VPC as part of our HIPAA journey so I needed to add a CloudwatchLogs VPC endpoint using the CDK:
vpc.addInterfaceEndpoint(
"CloudwatchLogsInterfaceEndpoint",
{
service: ec2.InterfaceVpcEndpointAwsService.CLOUDWATCH_LOGS,
privateDnsEnabled: true,
open: true,
lookupSupportedAzs: true,
subnets: {
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
},
}
);
Redeployed the stack and all was well.
🎉