Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_stepfunctions | aws_logs: codepipeline update failure, invalid logging configuration #28900

Closed
ekeyser opened this issue Jan 28, 2024 · 2 comments
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@ekeyser
Copy link

ekeyser commented Jan 28, 2024

Describe the bug

I tried adding a logs block to my state machines and everything blew up. I tried the suggestion of prefixing the log group name with /aws/vendedlogs/states/ to no avail. I don't even know what "vendedlogs" means lol.

Resource handler returned message: "Invalid Logging Configuration: The CloudWatch Logs Resource Policy size was exceeded. We suggest prefixing your CloudWatch log group name with /aws/vendedlogs/states/. (Service: AWSStepFunctions; Status Code: 400; Error Code: InvalidLoggingConfiguration; Request ID: c602b89a-0ba3-4d0e-aca9-5bd2568e02e7; Proxy: null)" (RequestToken: , HandlerErrorCode: InvalidRequest)
 logs: {
                     destination: new logs.LogGroup(scope, '/aws/vendedlogs/states/myloggroupname'),
                     level: sfn.LogLevel.ALL,
                     includeExecutionData: true,
                }

Expected Behavior

No update failure.

Current Behavior

Updating the stack resulted in a failure with the above message.

Reproduction Steps

 logs: {
                     destination: new logs.LogGroup(scope, '/aws/vendedlogs/states/myloggroupname'),
                     level: sfn.LogLevel.ALL,
                     includeExecutionData: true,
                }

Possible Solution

No response

Additional Information/Context

I see some closed tickets and reverted PRs with similar error messages but quite frankly I don't know enough to know if they are related. There's mention of custom resources but I don't believe I'm using custom resources.

CDK CLI Version

2.124.0

Framework Version

No response

Node.js Version

v18

OS

Linux

Language

TypeScript

Language Version

5.3.3

Other information

No response

@ekeyser ekeyser added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 28, 2024
@github-actions github-actions bot added the @aws-cdk/aws-stepfunctions Related to AWS StepFunctions label Jan 28, 2024
@ekeyser ekeyser closed this as completed Jan 28, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@ekeyser
Copy link
Author

ekeyser commented Jan 28, 2024

fixed by actually specifying LogGroupName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant