- Newest
- Most votes
- Most comments
The error you're seeing in your .net application deployed on Fargate is related to CloudWatch Logs configuration. The specific error is an InvalidParameterException that indicates there are validation errors with the logGroupNamePrefix parameter.
The error message shows two validation issues:
- The logGroupNamePrefix has a length of zero (empty string), but it must have a length of at least 1 character
- The logGroupNamePrefix must match a specific regular expression pattern: [.-_/#A-Za-z0-9]+
This suggests that your application is trying to interact with CloudWatch Logs but hasn't properly specified a log group name or prefix. Even though your logs are still appearing in CloudWatch, this error is occurring when your application's logging framework is trying to perform certain operations with CloudWatch Logs.
To fix this issue, you should:
- Check your AWS Logger configuration in your application to ensure you've properly specified a log group name
- Make sure the log group name follows the required pattern (can only contain letters, numbers, dots, dashes, underscores, forward slashes, and pound signs)
- Verify that your application has the proper IAM permissions to interact with CloudWatch Logs
This is likely happening in your AWS Logger initialization code where the log group name should be specified but is being left empty.
Sources
This AWS::Cognito::LogDeliveryConfiguration resource is in a CREATE_FAILED state because of a regex mismatch? | AWS re:Post
CodePipeline step CodeDeploy using ECS blue/green fails at 'Rerouting production traffic to replacement task set' | AWS re:Post
