Files
floci/src
Hector Ventura 77007656aa refactor(cloudformation): move the DynamoDB types into DynamoDbCfnProvisioner (#3699)
* refactor(cloudformation): move the DynamoDB types into DynamoDbCfnProvisioner

AWS::DynamoDB::Table, AWS::DynamoDB::GlobalTable and Custom::DynamoDBReplica leave
CloudFormationResourceProvisioner for a per-service provisioner that owns create,
update and delete for all three. The monolith drops 246 lines, its last DynamoDB
reference and the injected DynamoDbService (24 to 23 constructor parameters), and
its legacy switch goes from 27 to 24 types.

Two behaviour changes ride along, both covered by the new tests. A GlobalTable is
now deleted on stack delete: it had no delete arm and the table leaked.
Fn::GetAtt TableId resolves for both table types, from the same value
DescribeTable reports, which closes the registry schema's read-only attribute the
old arm never set. Replicas on a GlobalTable stays ignored as before.
parseCfnTags is copied rather than moved because the monolith's unused
putTagsObject still references it.

* refactor(cloudformation): publish TableId only for global tables and let a failed replica delete surface

The registry schema declares TableId read-only on AWS::DynamoDB::GlobalTable only; a
plain AWS::DynamoDB::Table exposes Arn and StreamArn, so publishing TableId there
accepted a Fn::GetAtt that CloudFormation rejects. The replica delete tolerated every
exception, which reported a clean delete over a real failure; it now goes through
CfnDeletes.safeDelete and treats only a missing table as already gone, since the
service already ignores removing an absent replica. The unused snsService constructor
parameter on the line this change touches is dropped as well.
2026-09-15 22:51:17 -05:00
..