Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Fix CloudWatch Events import error caused by wrong NextToken#2082

Closed
TheWesDias wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
TheWesDias:master
Closed

Fix CloudWatch Events import error caused by wrong NextToken#2082
TheWesDias wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
TheWesDias:master

Conversation

@TheWesDias
Copy link
Copy Markdown

This PR fixes a bug in retrieving AWS CloudWatch event targets.
Previously, the code was incorrectly using the token from the ListRules call instead of the one from ListTargetsByRule.

As a result, the following error occurred when attempting to import CloudWatch events:

aws error initializing resources in service cloudwatch, err: operation error CloudWatch Events: ListTargetsByRule, https response error StatusCode: 400, RequestID: 3509aae3-fe4e-49e3-8a93-9f8cd4ea66ca, api error ValidationException: Parameter NextToken is not valid.

@TheWesDias
Copy link
Copy Markdown
Author

Hi @sergeylanzman , Could you review this pr ?

@TheWesDias
Copy link
Copy Markdown
Author

This PR addresses this discussion #1241

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants