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

Config - put_configuration_recorder leaves old resource type overrides #4057

Open
ryanash999 opened this issue Mar 20, 2024 · 1 comment
Open
Assignees
Labels
bug This issue is a confirmed bug. config p2 This is a standard priority issue response-requested Waiting on additional information or feedback. service-api This issue is caused by the service API, not the SDK implementation.

Comments

@ryanash999
Copy link

Describe the bug

After using client.put_configuration_recorder to push frequency overrides we tried to remove the settings with a similar call. The second call is using the below settings to remove the existing resource type overrides.
'recordingMode': { 'recordingFrequency': 'CONTINUOUS', 'recordingModeOverrides': [] }

Expected Behavior

I expect the existing overrides to be removed because an empty list was provided.

Current Behavior

The overrides remain but are set back to "CONTINUOUS" as expected. I.e we still the overrides for the 3 resource types even if the frequency is now correct.

Reproduction Steps

  1. use put_configuration_recorder to update an exiting recorder with an override to DAILY for a resource type
  2. use put_configuration_recorder with empty list for "recordingModeOverrides"
  3. Expectation as I see it is removal of the overrides.

Possible Solution

unknown

Additional Information/Context

n/a

SDK version used

1.34.30

Environment details (OS name and version, etc.)

Mac

@ryanash999 ryanash999 added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Mar 20, 2024
@tim-finnigan tim-finnigan self-assigned this May 8, 2024
@tim-finnigan tim-finnigan added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label May 8, 2024
@tim-finnigan
Copy link
Contributor

Hi there - thanks for your patience. Here is the documentation for the command you referenced: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/config/client/put_configuration_recorder.html. I noticed that you're using an older version of Boto3 — the latest is 1.34.101 per the CHANGELOG. We recommend updating your version of Boto3 to have access to the latest updates/fixes.

Please also note that the Boto3 command involves a call to the underlying PutConfigurationRecorder API, so if there are any issues with the API then we would need to escalate those to the ConfigService team.

For us to investigate further, can you share a code snippet for reproducing the issue? And could you share debug logs (with sensitive info redacted) by adding boto3.set_stream_logger('') to your script?

@tim-finnigan tim-finnigan added response-requested Waiting on additional information or feedback. service-api This issue is caused by the service API, not the SDK implementation. config p2 This is a standard priority issue and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. needs-triage This issue or PR still needs to be triaged. labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. config p2 This is a standard priority issue response-requested Waiting on additional information or feedback. service-api This issue is caused by the service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

2 participants