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_stack method for cloudformation client fails parameter validation #4289

Closed
1 task done
ssdavidson opened this issue Sep 30, 2024 · 2 comments
Closed
1 task done
Assignees

Comments

@ssdavidson
Copy link

Describe the bug

When I call client.delete_stack(StackName=stack_name, DeletionMode='FORCE_DELETE_STACK') using boto3, I get the following error:
Parameter validation failed: Unknown parameter in input: "DeletionMode", must be one of: StackName, RetainResources, RoleARN, ClientRequestToken

This only happens in boto3-1.34.25. When I use boto3-1.34.144, the call works as expected.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Initiate forced deletion of given stack name.

Current Behavior

Parameter validation error that lists all of the other parameters of the delete_stack method.

Reproduction Steps

pip install boto3==1.34.25
python

import boto3
client=boto3.client('cloudformation')
stack_name = an existing stack
client.delete_stack(StackName=stack_name, DeletionMode='FORCE_DELETE_STACK')

Possible Solution

Revert to the method definition in 1.34.144

Additional Information/Context

No response

SDK version used

1.34.25

Environment details (OS name and version, etc.)

AWS Linux

@ssdavidson ssdavidson added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Sep 30, 2024
@github-actions github-actions bot added the potential-regression Marking this issue as a potential regression to be checked by team member label Sep 30, 2024
@tim-finnigan tim-finnigan self-assigned this Oct 1, 2024
@tim-finnigan
Copy link
Contributor

Thanks for reaching out. The Parameter validation failed: Unknown parameter in input error often indicates that you're using an older version of boto3. It looks like support for DeletionMode was added in 1.34.111 per the CHANGELOG. That parameter is present in the latest documentation for delete_stack, and not in the older version 1.34.25. I think this issue can be closed but if you have any follow up questions let us know.

@tim-finnigan tim-finnigan removed bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. potential-regression Marking this issue as a potential regression to be checked by team member labels Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants