#4275·mcp

AWS-iac-mcp-server: troubleshoot_cloudformation_deployment 返回空事件 (describe_events 未限定失败的 OperationId)

作者: dbartholomae创建于 2026年7月17日更新于 2026年9月16日
标签stale

stacks = self.cfn_client.describe_stacks(StackName=stack_name)['Stacks'] … response['raw_data']['stack_status'] = stacks[0].get('StackStatus') … cloudformation_events = self.cfn_client.describe_events( StackName=stack_name, Filters={'FailedEvents': True} )['OperationEvents'] Per the DescribeEvents docs, CloudFormation groups events by Operation ID — every rollback, update, etc. is its own operation. DescribeStacks now returns a LastOperations array, e.g.: