localstackdynamodb

package module
v0.0.0-...-4cf31bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

localstack-dynamodb-clean-up

Go CLI tool to clean up for dynamodb on localstack.

Abstract

Delete All Item of DynamoDB-Local on LocalStack that using 4566 port. This tool operates bellow flow.

  1. Describe table and get key schema.
  2. Scan all items.
  3. Batch write items(using dynamodb delete request)

Installation

Build from source.

go get -u github.com/laqiiz/localstack-dynamodb-clean-up/cmd/localstackdynamodbcleanup

Usage

./localstackdynamodbcleanup <table name>

Excample

./localstackdynamodbcleanup local_table1 local_table2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUp

func CleanUp(ctx context.Context, table string) error

func CleanUpAll

func CleanUpAll(ctx context.Context, tables []string) error

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL