cdk-monitoring-constructs is currently unable to create monitors for replica DynamoDB tables created with the replicationRegions property. Passing an ITable created with a replica table's ARN (using fromTableArn) into the DynamoTableMonitoringProps's table property creates widgets for the main table that is being replicated, instead of the desired replica table.
I believe this is currently happening because these lines strip the replica's region info from the final reference by only using the tableName property.
Feature scope
DynamoDB
Describe your suggested feature
cdk-monitoring-constructs
is currently unable to create monitors for replica DynamoDB tables created with thereplicationRegions
property. Passing anITable
created with a replica table's ARN (usingfromTableArn
) into theDynamoTableMonitoringProps
'stable
property creates widgets for the main table that is being replicated, instead of the desired replica table.I believe this is currently happening because these lines strip the replica's region info from the final reference by only using the
tableName
property.