Skip to content

Instantly share code, notes, and snippets.

@dgoguerra
Last active November 5, 2023 11:15
Show Gist options
  • Save dgoguerra/55dcc28e5d31caef1b3fe2bedd9fa1f2 to your computer and use it in GitHub Desktop.
Save dgoguerra/55dcc28e5d31caef1b3fe2bedd9fa1f2 to your computer and use it in GitHub Desktop.
Install dynamodb-local through Homebrew (custom formula)

Install dynamodb-local through Homebrew

An official formula for dynamodb-local existed, but was removed since dynamodb-local is not open source and stopped having versions.

Now its available either through a Cask, or by installing it as a formula from an unofficial tap (third party repo).

When installed as a cask dynamodb-local cannot be exposed as a service, so here we are installing it as a formula. It has been forked from rjcoelho/homebrew-boneyard and updated to be a head-only formula, to avoid checksum erros on new versions. It is available at dgoguerra/homebrew-boneyard.

# dynamodb-local depends on Java 6+
brew cask install java

# Install as a head-only formula
brew install --HEAD dgoguerra/boneyard/dynamodb-local

# Launch its service
brew services start dgoguerra/boneyard/dynamodb-local

Admin GUI

For more info about dynamodb-local and an admin interface for it, see: https://github.com/tongueroo/jets/wiki/Dynamodb-Local-Setup-Walkthrough

# Install admin GUI
npm install dynamodb-admin -g

# Run admin GUI and open it in a browser
dynamodb-admin & open http://localhost:8001 && fg
@x1wins
Copy link

x1wins commented Dec 29, 2022

brew services start dgoguerra/boneyard/dynamodb-local was not working any more. brew cask is not working too.
I did use brew install dynamodb-local for install dynamodb-local

$ brew services start dgoguerra/boneyard/dynamodb-local

Error: No available formula with the name "dgoguerra/boneyard/dynamodb-local".
Please tap it and then try again: brew tap dgoguerra/boneyard

$ brew tap dgoguerra/boneyard
==> Tapping dgoguerra/boneyard
Cloning into '/opt/homebrew/Library/Taps/dgoguerra/homebrew-boneyard'...
remote: Repository not found.
fatal: repository 'https://github.com/dgoguerra/homebrew-boneyard/' not found
Error: Failure while executing; `git clone https://github.com/dgoguerra/homebrew-boneyard /opt/homebrew/Library/Taps/dgoguerra/homebrew-boneyard --origin=origin --template=` exited with 128.
$ brew install dynamodb-local

==> Caveats
dynamodb-local requires Java 6+. You can install the latest version with:
  brew install --cask temurin

==> Downloading https://dynamodb-local.s3.amazonaws.com/dynamodb_local_latest.tar.gz
######################################################################## 100.0%
Warning: No checksum defined for cask 'dynamodb-local', skipping verification.
==> Installing Cask dynamodb-local
==> Linking Binary 'dynamodb-local.wrapper.sh' to '/opt/homebrew/bin/dynamodb-local'
🍺  dynamodb-local was successfully installed!

$ dynamodb-local 

Initializing DynamoDB Local with the following configuration:
Port:	8000
InMemory:	false
DbPath:	null
SharedDb:	false
shouldDelayTransientStatuses:	false
CorsParams:	null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment