Method: Stax::Cmd::DynamoDB#tables
- Defined in:
- lib/stax/mixin/dynamodb.rb
#tables ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'lib/stax/mixin/dynamodb.rb', line 42 def tables debug("Dynamo tables for stack #{my.stack_name}") print_table stack_tables.map { |r| t = Aws::DynamoDB.table(r.physical_resource_id) g = Aws::DynamoDB.global_table(r.physical_resource_id) regions = g.nil? ? '-' : g.replication_group.map(&:region_name).sort.join(',') [ t.table_name, color(t.table_status, COLORS), t.item_count, t.table_size_bytes, t.creation_date_time, regions ] } end |