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

delete_role_policy fails to delete a policy who's name is longer than 64 chars #3684

Closed
visokoo opened this issue Apr 26, 2023 · 1 comment
Closed
Labels
bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged.

Comments

@visokoo
Copy link

visokoo commented Apr 26, 2023

Describe the bug

delete_role_policy call fails to delete a policy who's name is longer than 64 chars.

Expected Behavior

This policy can be deleted from the role on the AWS console just fine, so should be replicated on boto3 as well.

Current Behavior

An error occurred (ValidationError) when calling the DeleteRolePolicy operation: 1 validation error detected: Value 'CloudTrailPolicyForCloudWatchLogs_10d32d54-043c-4293-b3b0-2e757d758cd0' at 'roleName' failed to satisfy constraint: Member must have length less than or equal to 64

Reproduction Steps

Create a role policy attached to a role with a name longer than 64 chars and attempt to delete it using aws cli or boto3.

Possible Solution

Remove >= 64 char limitation for rolePolicy name.

Additional Information/Context

No response

SDK version used

1.26.119

Environment details (OS name and version, etc.)

MacOS 13.1

@visokoo visokoo added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Apr 26, 2023
@visokoo
Copy link
Author

visokoo commented Apr 26, 2023

Realized my own error, please ignore.

@visokoo visokoo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
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. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant