When trying to toggle managed_execution.active from false to true, the operation fails with the error Cannot update ManagedExecution while updating StackSet Template or Parameters, even though no other changes are being made to the stackset.
# aws_cloudformation_stack_set.this["x"] will be updated in-place
~ resource "aws_cloudformation_stack_set" "this" {
id = "x"
name = "x"
tags = {}
# (10 unchanged attributes hidden)
~ managed_execution {
~ active = false -> true
}
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
...
aws_cloudformation_stack_set.this["x"]: Modifying... [id=x]
╷
│ Error: updating CloudFormation StackSet (x): InvalidOperationException: Cannot update ManagedExecution while updating StackSet Template or Parameters.
│ status code: 400, request id: 9ca9bce0-49c4-459e-a7ac-35bff6848f4c
│
│ with aws_cloudformation_stack_set.this["x"],
│ on main.tf line 11, in resource "aws_cloudformation_stack_set" "this":
│ 11: resource "aws_cloudformation_stack_set" "this" {
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.6.6
AWS Provider Version
5.31.0
Affected Resource(s)
Expected Behavior
Ability to update ManagedExecution value
e.g.
Actual Behavior
When trying to toggle
managed_execution
.active
from false to true, the operation fails with the errorCannot update ManagedExecution while updating StackSet Template or Parameters
, even though no other changes are being made to the stackset.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
aws_cloudformation_stack_set
withmanaged_execution
.active
=false
aws_cloudformation_stack_set
withmanaged_execution
.active
=true
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None