go-sync-adm-tools

command module
v0.0.0-...-33899d9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

README

Brave Sync Administration Tools

This repository contains a set of Brave Sync Administration tools for maintaining sync data in DynamoDB (currently).

Installation

To install the tools, check out the repo, and run the following:

   $ make all

List of Tools

main: This tool sets an hour TTL on DynamoDB data that needs to be deleted.

Usage

In order to use main, the user needs to have permissions to the DynamoDB in the given Sync account. Typically this is ran by a member of the DevOps team. Using the devops-admin-rw-role, a DevOps team member can set the TTL for a given client ID by running the following:

   $ export AWS_ENDPOINT=https://dynamodb.us-west-2.amazonaws.com
   $ aws-vault exec sync-prod-devops-rw -- ./main delete 8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX2
     Deleting user data for clientID 8XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX2
     Successfully set ttl for 1741 records

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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