mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* fix(cloudformation): apply KinesisStreamSpecification on AWS::DynamoDB::Table The property was accepted and ignored, so a stack that declared it got a table whose item changes never reached the stream. The declared stream becomes the table's active Kinesis streaming destination on create and update. Removing a block the previous template declared turns it off, and a stack that never declared it leaves destinations set outside it alone. The in-place update snapshot of a stack that manages the destinations records them, so a failed update puts them back as they were. A change of ApproximateCreationDateTimePrecision alone updates the active destination in place, as CloudFormation does with one UpdateKinesisStreamingDestination call, so forwarding never stops and records already captured are still delivered. A block that is not an object fails template validation, as TimeToLiveSpecification does, rather than reading as a removed block that turns forwarding off. A StreamArn the destination cannot use fails the table as the AWS handler does, and the table this attempt created is deleted. One under 37 characters fails EnableKinesisStreamingDestination's validation. One that is not a Kinesis stream ARN, such as the stream name Ref returns, or one naming a stream that does not exist fails as NotStabilized. DynamoDbTableAccess gains enable, disable and update operations for the destination. DynamoDB Local has no Kinesis forwarding, so that backend leaves the table as it is and logs a warning. CloudFormation still checks StreamArn there as AWS does; only the forwarding is skipped. * fix(cloudformation): match Kinesis destinations by their whole stream ARN A destination was looked up by the last segment of its StreamArn in the table's account and region, so an ARN for another account, region or resource type that ended in a local stream's name forwarded to that stream. KinesisService.describeStreamByArn now finds a stream only by its exact ARN. NativeDynamoDbTableService uses it, so the public EnableKinesisStreamingDestination action reports such an ARN as not found, and CloudFormation fails the table as NotStabilized. The DynamoDB Local backend looks the stream up the same way before it skips forwarding, so a template naming a missing stream fails there too. A declared StreamArn the table already forwards to now goes through the same template checks as a new one; only the rollback restore skips them.