Skip to content

Instantly share code, notes, and snippets.

@bradleybeddoes
Last active October 21, 2022 02:09
Show Gist options
  • Save bradleybeddoes/7b568d87d20c5e4ebfe31de9a8dc08c7 to your computer and use it in GitHub Desktop.
Save bradleybeddoes/7b568d87d20c5e4ebfe31de9a8dc08c7 to your computer and use it in GitHub Desktop.
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.

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment