When creating a Dynamodb table, you do not need to mention all the attributes of the table. Only two attributes are required when creating the Ie table partition key and sort key, if available.
As you already mentioned that the attribute is a map, it definitely cannot be a partition key or a sort key, since key attributes can only be scalar data types.
The simple answer is: you do not need to define the map attribute (document data type) in the CloudFormation create table script.
source share